t, x = int(input()), int(input()) for _ in range(t-1): nx = int(input()) if abs(x - nx) != 1: print("F") break x = nx else: print("T")