T = int(input()) pre = 0 ans = 'T' for _ in range(T): x = int(input()) if x - pre == 1 or x - pre == -1: pass else: ans = 'F' pre = x print(ans)