#include <iostream>
#include <stdio.h>
#include <cmath>
#include <algorithm>
using namespace std;
int main(void){
    int num;
    while(scanf("%d",&num)!=EOF){
        printf("3C%02d\n",(num-1)%39+1);
    }
    return 0;
}
