int n; while (cin >> n) cout << vector<string>{"甲","乙","丙","丁","戊","己","庚","辛","壬","癸"}[(n+6)%10] << vector<string>{"子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"}[(n+8)%12] << endl;