# -*- coding: utf-8 -*-

A = float(input())
B = float(input())
C = float(input())
P1 = 2.0
P2 = 3.0
P3 = 5.0
MEDIA = (A * P1  + B * P2 + C * P3) / (P1 + P2 + P3)
print("MEDIA = {:.1f}".format(MEDIA))
