售货
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a,b,c,d;
double a1,a2;
double s=0;
scanf("%d %d %lf",&a,&b,&a1);
scanf("%d %d %lf",&c,&d,&a2);
s=a1*b+a2*d;
printf("VALOR A PAGAR: R$ %.2lf",s);
return 0;
}