t,*a=map(int, open(0)) print("T"if all(abs(i-j)==1for i,j in zip([0]+a,a))else"F")