long long n,m,k;while(std::cin >> n >> m >> k)std::cout << n <<" 個餅乾,"<< m+min(n/10,k/2) <<" 盒巧克力,"<< k <<" 個蛋糕。"<< std::endl;