#P3954. Course Score Calculator

    ID: 17202 Type: Default 1000ms 256MiB

Course Score Calculator

Course Score Calculator

Niuniu recently started learning C++ and encountered a course whose total score is calculated as follows:

$$\text{Total Score} = \text{Homework Score} \times 20\% + \text{Quiz Score} \times 30\% + \text{Final Exam Score} \times 50\%$$

Given the scores of homework, quiz and final exam, calculate the final score.

inputFormat

The input consists of a single line containing three numbers separated by spaces: the homework score, the quiz score, and the final exam score.

outputFormat

Output the final score as a number. It is guaranteed that the result is an integer.

sample

80 90 100
93