1. a=float(input())
  2. b=float(input())
  3. average = (a *3.5 + b*7.5)/(3.5+7.5)
  4. print("MEDIA = %0.5f" %average)