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