#include <iostream>
using namespace std;
int main(void){
    int n;
    while(cin>>n){
        n--;
        cout<<"3C";
        if(n%39<9)
            cout<<"0";
        cout<<n%39+1<<endl;
    }
    return 0;
} 
