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