n=int(input()) a=[int(input()) for i in range(n)] ok=a[0]==0 for i in range(1,n): ok&=abs(a[i]-a[i-1])==1 print('T' if ok else 'F')