import sys T = int(input()) now = 0 for _ in range(T): X = int(input()) if abs(X-now) == 1: now = X else: print('F') exit() print('T')