#C8967. Calculate Total Revenue

    ID: 53007 Type: Default 1000ms 256MiB

Calculate Total Revenue

Calculate Total Revenue

You are given a list of orders. Each order is represented as a string in the format product:price, where product is the product name and price is a non-negative integer representing its price.

Your task is to calculate the total revenue by summing all the prices. In mathematical terms, if the prices are \( p_1, p_2, \dots, p_n \), you need to compute \( \sum_{i=1}^{n} p_i \).

The input is read from standard input and the result should be printed to standard output.

inputFormat

The first line of input contains an integer n denoting the number of orders. The following n lines each contain a string in the format product:price.

outputFormat

Print a single integer representing the total revenue, i.e. the sum of all prices.

## sample
6
apple:100
banana:200
apple:150
mango:300
banana:100
grape:400
1250