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