n=int(input()) x=0 for i in range(n): t=int(input()) if (x-t)**2>1: print('F') break x=t else: print('T')