#include <iostream> #include <cmath> using namespace std; int main() { int a,b,d,e; double c,f; cin>>a>>b>>c; cin>>d>>e>>f; printf("VALOR A PAGAR: R$ %.2f",b*c+e*f); return 0; }