LearnPy Hub
← Variables problems
Medium

Weighted Mark

Read a class test mark (out of 20), a midterm (out of 30) and a final (out of 50). The total out of 100 is their sum. Print the total and the percentage of the final out of 50, both with 1 decimal.

Input

Three numbers.

Output

Two lines.

Sample 1

Input
18
25
40
Output
83.0
80.0

Sample 2

Input
20
30
50
Output
100.0
100.0
solution.py
Output appears here
Weighted Mark · Python practice problem · LearnPy Hub