#include #include using namespace std; using namespace atcoder; #define rep(i,a,b) for(it i=(it)(a);i<=(it)b;i++) #define all(v) v.begin(), v.end() #define rall(v) v.rbegin(), v.rend() #define moda 998244353LL #define modb 1000000007LL #define dai 2500000000000000000LL #define tyu 2500000000 #define sho -dai #define eps 1e-14 #define yn(x) cout<<(x ? "Yes":"No")<; using mint=modint; using vi=vector; using vd=vector; using vs=vector; using vc=vector; using vb=vector; using vp=vector

; using vm=vector; using sp=set

; using ss=set; using si=set; using vvi=vector; using vvd=vector; using vvs=vector; using vvb=vector; using vvc=vector; using vvp=vector; using vvm=vector; using vsi=vector; using vsp=vector; using vvsi=vector; using vvsp=vector; using vvvi=vector; using vvvd=vector; using vvvvi=vector; const it dx[4]={0,1,0,-1}; const it dy[4]={1,0,-1,0}; st mo(it n){ if(n==1)return "I"; if(n==2)return "II"; if(n==3)return "III"; if(n==4)return "IIII"; if(n==5)return "V"; if(n==6)return "VI"; if(n==7)return "VII"; if(n==8)return "VIII"; if(n==9)return "VIIII"; if(n==10)return "X"; if(n==11)return "XI"; return "XII"; } it su(st n){ if(n=="I")return 1; if(n=="II")return 2; if(n=="III")return 3; if(n=="IIII")return 4; if(n=="V")return 5; if(n=="VI")return 6; if(n=="VII")return 7; if(n=="VIII")return 8; if(n=="VIIII")return 9; if(n=="X")return 10; if(n=="XI")return 11; return 12; } int main(){ st n;it t;cin>>n>>t; it i=su(n); i=(i+t%12+12)%12; cout<