//
// main.cpp
// b186: 97七區資訊學科1(改編)
//
// Created by 邱柏宇 on 2019/8/5.
// Copyright © 2019 邱柏宇. All rights reserved.
//
#include <iostream>
#include <math.h>
using namespace std;
short int a,b,c;
int main(int argc, const char * argv[]) {
cin>>a>>c>>b;
if(a>=10&&b>=2){
cout<<a<<" 個餅乾,"<<c+(a+b)/12<<" 盒巧克力,"<<b<<" 個蛋糕。";
}else{
cout<<a<<" 個餅乾,"<<c<<" 盒巧克力,"<<b<<" 個蛋糕。";
}
}
輸入其實不只有一行
想不到吧x)..
被題目坑了 我也吃了一個WA