now = 0 res = 0 t = int(input()) for _ in range(t): x = int(input()) if abs(x - now) != 1: print('F') exit() now = x print('T')