#include<iostream>
#include<iomanip>
#include<math.h>
using namespace std;
int main()
{
cout<<setprecision(0)<<setiosflags(ios::fixed);
double a,b,c;
while(cin>>a>>b>>c)
{
if(a>=10)
{
if(c>=2)
{
if(a/10<c/2)
cout<<a<<" "<<"個餅乾,"<<b+floor(a/10)<<" "<<"盒巧克力,"<<c<<" "<<"個蛋糕。"<<endl;
else if(a/10>c/2)
cout<<a<<" "<<"個餅乾,"<<b+floor(c/2)<<" "<<"盒巧克力,"<<c<<" "<<"個蛋糕。"<<endl;
}
}
}
}