n = int(input()) l = [int(input()) for i in range(n)] L = [abs(l[j]-l[j+1]) for j in range(n-1)] s = list(set(L)) if s == [1] or s == []: print('T') else: print('F')