#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdio>

using namespace std;

int main(){

	int n;
	while(cin>>n){
		cout<<"3C";
		n--;
		printf("%02d\n",(n%39)+1);
	}
	
	return 0;
}