n1,k1,n2,k2=input().split()n1=int(n1)k1=int(k1)n2=int(n2)k2=int(k2)suma = n1*k1+n2*k2print(suma)
2 5 3 20
70
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!