S = input() dic = {'E':'F','B':'C'} if S in dic: print(dic[S]) else: print(S+'#')