N = int(input()) p = 0 np = 0 flg = 0 for i in range(N): np = int(input()) if p + 1 == np or p - 1 == np: p = np else: flg = 1 if flg == 1: print("F") else: print("T")