s=input()
if s in "CDFGA":
	print(s+"#")
else:
	print("CF"[s=="E"])