t=int(input()) c=0 for i in range(t): a=int(input()) if c==a-1 or c==a+1: c=a else: print('F') break else: print("T")