a = float(input()) b = float(input()) c = float(input()) print("MEDIA = %.1f" %((2 * a + 3 * b + 5 * c) / 10))