#include<bits/stdc++.h>
using namespace std;
int main(){
long long int a,b,c,b1;
while(cin>>a>>b>>c){
if(a>=10 && c>=2){
if(a/10<=c/2) {b1=a/10;}
else if(c/2<a/10) {b1=c/2;}
b+=b1;
}
else b=b;
cout<<a<<" 個餅乾,"<<b<<" 盒巧克力,"<<c<<" 個蛋糕。"<<endl;
}
return 0;
}