#include<iostream>
using namespace std;

int main(){

  int n, x;

  while(cin >> n){

  x=n%39;

  cout << "3C";

  if (x<10){
    cout << "0" << x << endl;
  } else {
    cout << x << endl;
  }
  }
  
  return 0;
}