T = int(input()) x =[0]*T s = "T" print(x) for a in range(0,T): x[a] = int(input()) print(x) for i in range(0,T-1): if(x[i] != x[i+1]+1)and(x[i] != x[i+1]-1): s = "F" break print(s)