n = int(input()) array = [0]+[int(input()) for i in range(n)] array_diff = [array[i+1]-array[i] for i in range(0,len(array)-1)] print("T") if len(list(filter(lambda x: x not in [-1,1],array_diff)))==0 else print("F")