#include <stdio.h>

const char * msg = "TC";

int main(void) {
	printf("%d%d\n", 'Z' - *msg+1, *(msg+1)+1 - 'A');
	return 0;
}
