#include <iostream>
using namespace std;


int main(int argc, const char * argv[]) {
    
    int n;
    while (cin >> n) {
        
        cout << "3C" << n % 39 << endl;
        
    }
    
    return 0;
}