#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n;
string s[]={"戌","酉","申","未","午","巳","辰","卯","寅","丑","子","亥"};
string m[]={"癸","甲","乙","丙","丁","戊","己","庚","辛","壬"};
while(cin>>n)
{
int y=n%12; cout<<m[y];
int i=n%10; cout<<s[i]<<endl;
}
}
#include <bits/stdc++.h>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n;
string s[]={"戌","酉","申","未","午","巳","辰","卯","寅","丑","子","亥"};
string m[]={"癸","甲","乙","丙","丁","戊","己","庚","辛","壬"};
while(cin>>n)
{
int y=n%12; cout<<m[y];
int i=n%10; cout<<s[i]<<endl;
}
}
西元0年又不是甲子,你要有個基準