T = int(input()) now = 0 f = True for i in range(T): a = int(input()) if abs(a - now) == 1: now = a else: f = False print('T' if f else 'F')