a=int(input()) b=0 c=0 for i in range(a): c=int(input()) if abs(c-b)<=1 and abs(c-b)>0: b=c else: print("F") exit() print("T")