1. x = input().split(" ")
  2. y= input().split(" ")
  3. a,b,c = x
  4. d,e,f= y
  5. total = (int(b) * float(c)) + (int(e) * float(f))
  6. print("VALOR A PAGAR: R$ %0.2f" %total)