#include<stdio.h>
int main()
{
int i;
scanf_s("%d", &i);
char a[10] = {10,1,2,3,4,5,6,7,8,9};
char b[12] = {12,1,2,3,4,5,6,7,8,9,10,11};
char c[12] = { 0,1,2,3,4,5,6,7,8,9,10,11 };
int x, y, z;
x = (i - 3) % 10;
y = (i-3) % 12;
z = i % 12;
printf("%d年是农历",i);
switch (a[x]) {
case 1:printf("甲");break;
case 2:printf("乙");break;
case 3:printf("丙");break;
case 4:printf("丁");break;
case 5:printf("戊");break;
case 6:printf("己");break;
case 7:printf("庚");break;
case 8:printf("辛");break;
case 9:printf("壬");break;
case 10:printf("癸");break;
}switch (b[y]) {
case 1:printf("子");break;
case 2:printf("丑");break;
case 3:printf("寅");break;
case 4:printf("卯");break;
case 5:printf("辰");break;
case 6:printf("巳");break;
case 7:printf("午");break;
case 8:printf("未");break;
case 9:printf("申");break;
case 10:printf("酉");break;
case 11:printf("戌");break;
case 12:printf("亥");break;
}
switch (c[z]) {
case 0:printf("猴");break;
case 1:printf("鸡");break;
case 2:printf("狗");break;
case 3:printf("猪");break;
case 4:printf("鼠");break;
case 5:printf("牛");break;
case 6:printf("虎");break;
case 7:printf("兔");break;
case 8:printf("龙");break;
case 9:printf("蛇");break;
case 10:printf("马");break;
case 11:printf("羊");break;
}
printf("年");
return 0;
}
int main()
{
int i;
scanf_s("%d", &i);
char a[10] = {10,1,2,3,4,5,6,7,8,9};
char b[12] = {12,1,2,3,4,5,6,7,8,9,10,11};
char c[12] = { 0,1,2,3,4,5,6,7,8,9,10,11 };
int x, y, z;
x = (i - 3) % 10;
y = (i-3) % 12;
z = i % 12;
printf("%d年是农历",i);
switch (a[x]) {
case 1:printf("甲");break;
case 2:printf("乙");break;
case 3:printf("丙");break;
case 4:printf("丁");break;
case 5:printf("戊");break;
case 6:printf("己");break;
case 7:printf("庚");break;
case 8:printf("辛");break;
case 9:printf("壬");break;
case 10:printf("癸");break;
}switch (b[y]) {
case 1:printf("子");break;
case 2:printf("丑");break;
case 3:printf("寅");break;
case 4:printf("卯");break;
case 5:printf("辰");break;
case 6:printf("巳");break;
case 7:printf("午");break;
case 8:printf("未");break;
case 9:printf("申");break;
case 10:printf("酉");break;
case 11:printf("戌");break;
case 12:printf("亥");break;
}
switch (c[z]) {
case 0:printf("猴");break;
case 1:printf("鸡");break;
case 2:printf("狗");break;
case 3:printf("猪");break;
case 4:printf("鼠");break;
case 5:printf("牛");break;
case 6:printf("虎");break;
case 7:printf("兔");break;
case 8:printf("龙");break;
case 9:printf("蛇");break;
case 10:printf("马");break;
case 11:printf("羊");break;
}
printf("年");
return 0;
}