#include<iostream>
#include<algorithm>
#include<string>
#include <vector>

using namespace std;

int main(){

	int n;

	cin>>n;

	while(n>=39){
		n=n-39;
	}

	if(n==0){
		n=39;
	}

	cout<<"3C"<<n<<endl;
}