#include #include using namespace std; using namespace atcoder; #define repa(i,n) for(it i=0;i<(it)n;i++) #define repb(i,n) for(it i=1;i<=(it)n;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 sho -dai #define eps 1e-14 using it=long long; using un=unsigned long long; using db=long double; using st=string; using ch=char; using bo=bool; using P=pair; using T=tuple; using vi=vector; using vd=vector; using vs=vector; using vc=vector; using vb=vector; using vp=vector

; using sp=set

; using ss=set; using si=set; using vvi=vector; using vvs=vector; using vvb=vector; using vvc=vector; using vvp=vector; using vsi=vector; using vsp=vector; using vvsi=vector; using vvvi=vector; using vvvvi=vector; const it dx[4]={0,1,0,-1}; const it dy[4]={1,0,-1,0}; int main() { it n;cin>>n; while(n>=720){ cout<<"C"; n-=720; } while(n>=360){ cout<<"M"; n-=360; } while(n>=180){ cout<<"S"; n-=180; } while(n>=30){ cout<<"R"; n-=30; } while(n>=6){ cout<<"o"; n-=6; } while(n){ cout<<"."; n--; } cout<