#P8839. Calculate Final Grade

    ID: 22003 Type: Default 1000ms 256MiB

Calculate Final Grade

Calculate Final Grade

You are given three components of a student's group grade at Hualishu University of Science and Technology (HUST): attendance score t, homework score h, and exam score e. The total grade w is computed using the formula:

$$w = t \times 20\% + h \times 30\% + e \times 50\%$$

where it is guaranteed that \(0 \leq t, h, e \leq 100\). Since the final calculated grade must be an integer, you should discard the fractional part (i.e., use floor operation for positive numbers).

Your task is to compute and output the final grade based on the given scores.

inputFormat

The input consists of a single line with three space-separated integers: t, h, and e.

outputFormat

Output a single integer, which is the final grade after discarding any decimal part.

sample

100 100 100
100