t = int(input()) c = 0 for i in range(t): x = int(input()) if x == c + 1 or x == c - 1: c = x else: print('F') break else: print('T')