Weighted Course Average
Given oral, one-period, and final-exam scores \(M,T,F\), compute \((M+2T+3F)/6\).
Input
One line containing \(M,T,F\).
The input satisfies:
- \(0 <= M, T, F <= 10\)
Output
Print Diem Mieng = Diem Mot Tiet = Diem Hoc Ky = Diem TB = followed by the average, formatted with at most six significant digits and no unnecessary trailing zeros.
Example
Input
10 10 10
Output
Diem Mieng = Diem Mot Tiet = Diem Hoc Ky = Diem TB = 10
Comments