#include<iostream>
#include<string>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
int main(void){
    while(1){
        int n;
        cin>>n;
        n%=39;
        printf("3C%02d",n);
    }
	return 0;
}