T = int(input()) X = [0] flag = 0 for x in range(T): X.append(int(input())) if X[x] - X[x+1] >1 or X[x] - X[x+1] < -1: flag = 1 if X[0] == 0: print('F') elif flag == 0: print('T') elif flag == 1: print('F')