t1*n --> reprezinta cat transporta n camionane te tipul t1
t2*m--> reprezinta cat transporta m camioane te tipul t2
(t1*n+t2*m)*z--> reprezinta cat transporta n camioane de tipul t1 si m camioane de tipul t2 in z zile
#include <iostream>
using namespace std;
int main()
{
int t1,t2,n,m,z;
cin>>t1>>t2>>n>>m>>z;
cout<<(t1*n+t2*m)*z;
return 0;
}