n = int(input()) now = 0 ls = [] for i in range(n): s = int(input()) if abs(s-now) == 1: ls.append(s) now = s else: print("F") break if len(ls) == n: print("T")