T=int(input()) x=[] for i in range(T): x.append(input()) if(T==1): if(x[0]=='1' or x[0]=='-1'): print('T') else: print('F') else: for i in range(T-1): if(x[0]=='0'): print('F') break if(abs(int(x[i])-int(x[i+1]))!=1): print('F') break if(i==T-2): print('T')