题目描述
Problem Description
Takahashi is participating in a procon (here, procon refers to a contest that tests one's ability to appropriately plot on a graph).
Takahashi has worked on 3 tasks.
Each task has a defined score, and each task is evaluated with an integer between 1 and 10. When the evaluation is X, the task gives X tenths of the score.
Given the scores and evaluations of the 3 tasks, we want to know the total score Takahashi has earned.
Input Format
The input is given from the standard input in the following format:
$ s_1 $ $ e_1 $ $ s_2 $ $ e_2 $ $ s_3 $ $ e_3 $
- The first line contains two integers $s_1\ (10\ ≦\ s_1\ ≦\ 990)$ and $e_1\ (1\ ≦\ e_1\ ≦\ 10)$, representing the score of the first task and its evaluation.
- The second line contains two integers $s_2\ (10\ ≦\ s_2\ ≦\ 990)$ and $e_2\ (1\ ≦\ e_2\ ≦\ 10)$, representing the score of the second task and its evaluation.
- The third line contains two integers $s_3\ (10\ ≦\ s_3\ ≦\ 990)$ and $e_3\ (1\ ≦\ e_3\ ≦\ 10)$, representing the score of the third task and its evaluation.
- It is guaranteed that $ s_1 $, $ s_2 $, and $ s_3 $ are multiples of 10, so the total score is an integer.
Output Format
Output the total score in one line. Make sure to include a newline at the end of the output.
Sample Input and Output
Sample Input #1
50 7
40 8
30 9
Sample Output #1
94
Sample Input #2
990 10
990 10
990 10
Sample Output #2
2970
Notes/Hints
Sample Explanation 1
For task 1, with a score of 50 points, Takahashi earns 7 tenths of the score, so he gets $50\ ×\ 0.7\ =\ 35$ points. For task 2, with a score of 40 points, he earns 8 tenths of the score, so he gets $40\ ×\ 0.8\ =\ 32$ points. For task 3, with a score of 30 points, he earns 9 tenths of the score, so he gets $30\ ×\ 0.9\ =\ 27$ points. The total score for the three tasks is $35\ +\ 32\ +\ 27\ =\ 94$ points.
Sample Explanation 2
In some cases, the score is equal to the evaluation.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分