#include <stdio.h>
#include <cmath>
#include <algorithm>
  
using namespace std;
  
int main(){
  
    int num;
  
    while(scanf("%d",&num)!=EOF){
        printf("3C%02d\n",(num-1)%39+1);
    }
  
    return 0;
}

