n = int(input()) p = 0 for _ in "_"*n: tmp = int(input()) if abs(p-tmp)==1: p = tmp continue else: print("F") break else: print("T")