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