#include<iostream>
#include<stdio.h>

using namespace std;

int main(){

  int in;
  while(cin >> in){

    while(in >= 40){
      in -= 39;
    }

    cout << "3C";
    if(in < 10) cout << "0";
    printf("%d\n",in);
  }
  return 0;
}