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 == []: if l[0] == 1: print('T') else: print('F') elif s == [1]: print('T') else: print('F')