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