T=int(input()) x=[int(input()) for i in range(T)] a=x.pop(0) s="TF"[a==0] while x: b=x.pop(0) if abs(a-b)!=1:s="F" a=b print(s)