#include <iostream>
using namespace std;

int main(){
    int n;
    while( cin >> n ){
        int x = n%39 + 1;
        cout << "3C";
        if( x < 10 ) cout << 0;
        cout << x << endl;
    }
}