public class GanjiEx01 {
public static void main(String[] args) {
String gan[] = "갑(甲),을(乙),병(丙),정(丁),무(戊),기(己),경(庚),신(辛),임(壬),계(癸)".split(",");
String ji[] = "자(子),축(丑),인(寅),묘(卯),진(辰),사(巳),오(午),미(未),신(申),유(酉),술(戌),해(亥)".split(",");
int gCount = 0;
int jCount = 0;
for(int i=0;i<62;i++) {
System.out.print(""+gan[gCount].charAt(0)+ji[jCount].charAt(0) + " ");
if(++gCount==10) gCount = 0;
if(++jCount==12) jCount = 0;
if((i+1)%10==0) System.out.println();
}
System.out.println();
gCount = jCount = 0;
for(int i=0;i<62;i++) {
System.out.print(""+gan[gCount].charAt(2)+ji[jCount].charAt(2) + " ");
if(++gCount==10) gCount = 0;
if(++jCount==12) jCount = 0;
if((i+1)%10==0) System.out.println();
}
}
}