#include <iostream>

using namespace std;

int main(){
	
	int a,b,c,priceA,priceB,priceC,total;
	
	cout << " Enter number of pack for Type A: " <<endl;
	cin >> a;
	
	cout << "Enter number of pack for Type B: "<<endl;
	cin >> b;
	
	cout << " Enter number of pack for Type C: " <<endl;
	cin >> c;
	
	priceA= a*30;
	priceB=b*40;
	priceC=c*50;
	
	total = priceA + priceB + priceC;
	cout << "The total cost is:RM " << total<<endl;
	
return 0;

}
