n = int(input()) x = 0 for i in range(n): a = int(input()) if a + 1 == x or a-1 == x: x = a else: print("F") exit() print("T")