#include<iostream>
using namespace std;

int main(){
	int n,count;
	while(cin>>n){
		count=n%39;
		if(count==0)count=39;
		cout<<"3C";
		(count/10==0)?cout<<"0"<<count:cout<<count<<endl;
	}
	return 0;
}