from collections import Counter tcp="TCP" s=input() sc = Counter(s) for ch in tcp: print(ch*sc[ch],end="")