In the countries in the eurozone coins of 1, 2, 5, 10, 20 and 50 cent are in circulation, as well as 1 and 2 euro coins. When a lot of coins are brought to the bank, the coins are classified and counted by type by a machine. Determine the total number of brought-in coins and the total amount of all coins together.

### Input

The number of coins ranging from 1 cent to 2 euro, on 8 separate lines.

### Output

Two lines with the total number of coins on the first line and the total amount of all coins (in euros) on the second line.

### Example

Input:

5
4
3
2
1
0
40
11

Output:

66
62.68