#include<iostream>
using namespace std;
int n;
int main(){
  while(cin>>n){
    cout<<"3C";
    if(n%39!=0){
      if(n%39<10)cout<<"0";
      cout<<n%39<<endl;
    }
    else cout<<"39"<<endl;
  }
  return 0;
}