let () =
  let rec read () =
    try let n = read_int () in
        let num = n mod 39 in
        Printf.printf "3C%02d\n" (if num = 0 then 39 else num);
        read ()
    with End_of_file -> ()
  in read ()
;;