#!/usr/bin/env python

import sys

print "C"
sys.stdout.flush()
while True:
    l = sys.stdin.readline()
    if l == '': break
    print "C"
    try:
        sys.stdout.flush()
    except IOError:
        pass

