x = 0 L = list(int(input()) for i in range(int(input()))) for i in L: if abs(i-x) != 1: print('F') quit() else: x = i print('T')