S=input() l=[] m=[] for i in S: if ord(i)>ord("T") and i not in "CTP": l.append(i) for i in S: if ord(i)