import java.util.Scanner;
class PrintYear {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个年份");
int x = sc.nextInt();
int y = (x-4)%10;
int z = (x-4)%12;
if(x<4) {
System.out.println("输入有误!");
}
switch(y) {
case 0:
System.out.print("甲");
break;
case 1:
System.out.print("乙");
break;
case 2:
System.out.print("丙");
break;
case 3:
System.out.print("丁");
break;
case 4:
System.out.print("戊");
break;
case 5:
System.out.print("己");
break;
case 6:
System.out.print("庚");
break;
case 7:
System.out.print("辛");
break;
case 8:
System.out.print("壬");
break;
case 9:
System.out.print("癸");
}
switch(z) {
case 0:
System.out.println("子");
break;
case 1:
System.out.println("丑");
break;
case 2:
System.out.println("寅");
break;
case 3:
System.out.println("卯");
break;
case 4:
System.out.println("辰");
break;
case 5:
System.out.println("巳");
break;
case 6:
System.out.println("午");
break;
case 7:
System.out.println("未");
break;
case 8:
System.out.println("申");
break;
case 9:
System.out.println("酉");
break;
case 10:
System.out.println("戌");
break;
case 11:
System.out.println("亥");
}
}
}