#include <iostream> #include <cmath> using namespace std; int main() { int x1, y1, x2, y2; double s1, s2; cin >> x1 >> y1 >> s1; cin >> x2 >> y2 >> s2; printf("VALOR A PAGAR: R$ %.2lf", y1 * s1 + y2 * s2); return 0; }