N = int(input()) l = [0]+[int(input()) for _ in range(N)] s = "T" for i in range(N): if abs(l[i+1]-l[i])!=1: s = "F" print(s)