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