N = int(input()) ans = "T" a = 0 for i in range(N) : b = int(input()) if abs(a-b) <= 1 : a = b else : ans = "F" break print(ans)