#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
string one[6]={"","Medium Wac","WChicken Nugget","Geez Burger","ButtMilk Crispy Chicken","Plastic Toy"};
string two[5]={"","German Fries","Durian Slices","WcFurry","Chocolate Sunday"};
int o[6]={0,4,8,7,6,3};
int t[5]={0,2,3,5,7};
int main()
{
int n1,n2,a,total;
while(cin>>a&&a!=0){
if(a==1){
cin>>n1;
cout<<one[n1]<<" "<<o[n1]<<endl;
total=total+o[n1];
continue;
}//if
if(a=2){
cin>>n2;
cout<<two[n2]<<" "<<t[n2]<<endl;
total=total+t[n2];
continue;
}//if
}//while
cout<<"Total: "<<total;
//system("pause");
return 0;
}