// NOTE: it is recommended to use this even if you don't understand the following code.

#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

int X, new_X, Y, new_Y;
char winner;

int main() {
    // uncomment the two following lines if you want to read/write from files
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);

    assert(2 == scanf("%d%d", &X, &Y));

    winner = 'C';
    new_X = new_Y = 0;

    // INSERT YOUR CODE HERE

    // print the winner
    printf("%c\n", winner);
    fflush(stdout);

    // while there is no winner, print your move and read the opponent's move
    printf("%d %d\n", new_X, new_Y);
    fflush(stdout);
    assert(2 == scanf("%d%d", &X, &Y));

    return 0;
}
