<reponame>jocelinoFG017/Beecrowd-judge-solutions
# Author: <NAME>
A = float(input())
B = float(input())
C = float(input())

media = ( ( (A*2)+(B*3)+(C*5) )/10 )
print("MEDIA = %0.1f" % media)

# Author: <NAME>
A = float(input())
B = float(input())
C = float(input())

media = ( ( (A*2)+(B*3)+(C*5) )/10 )
print("MEDIA = %0.1f" % media)
# Author: <NAME>