s = str(input()) if s.find("T") != -1: print("T") else: print("")