#include<bits/stdc++.h>
using namespace std;
int main(){
  
  int a;
  while(cin >> a){
    cout << "3C";
    while(a > 39) a -= 39;
    if(a < 10) cout << 0;
    cout << a << endl;
  }
  return (0);
}