from sys import stdin rL = stdin.readline x = 0 for _ in range(int(rL())): pre_x,x = x,int(rL()) if not (pre_x-x)**2 == 1: print('F') break else: print('T')