a = int(input()) b = 0 for i in range(a): c = int(input()) if c-b == -1 or c-b == 1: 1-1 else: print("F") quit() b = c print("T")