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