#include<bits/stdc++.h>
using namespace std;
int main(){
int s1,s2,x=0,y=0;
while(y%2==0?cin>>s1:cin>>s2){
if(s1==0)break;
else {
if(y%2==1){
if(s1==1){
if(s2==1){
cout<<"Medium Wac 4"<<endl;
x+=4;
}
else if(s2==2){
cout<<"WChicken Nugget 8"<<endl;
x+=8;
}
else if(s2==3){
cout<<"Geez Burger 7"<<endl;
x+=7;
}
else if(s2==4){
cout<<"ButtMilk Crispy Chicken 6"<<endl;
x+=6;
}
else if(s2==5){
cout<<"Plastic Toy 3"<<endl;
x+=3;
}
}
else if(s1==2){
if(s2==1){
cout<<"German Fries 2"<<endl;
x+=2;
}
else if(s2==2){
cout<<"Durian Slices 3"<<endl;
x+=3;
}
else if(s2==3){
cout<<"WcFurry 5"<<endl;
x+=5;
}
else if(s2==4){
cout<<"Chocolate Sunday 7"<<endl;
x+=7;
}
}
}
}
y+=1;
}
cout<<"Total: "<<x<<endl;
}