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