T =int(input()) n = 0 m = 0 ans = 1 for _ in range(T): m = int(input()) ans = ans*(n-m) n = m if abs(ans) == 1: print("T") else: print("F")