import sys a = 0 for _ in range(int(input())): b = int(input()) if abs(a-b) != 1: print("F") sys.exit() print("T")