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