t=int(input()) a=list(int(input()) for i in range(t)) for i in range(1,t): if a[i-1]!=a[i]+1 and a[i-1]!=a[i]-1: print("F") print("T")