fork download
  1. n1,k1,n2,k2=input().split()
  2. n1=int(n1)
  3. k1=int(k1)
  4. n2=int(n2)
  5. k2=int(k2)
  6. suma = n1*k1+n2*k2
  7. print(suma)
Success #stdin #stdout 0.03s 9744KB
stdin
2 5 3 20
stdout
70