t = int(input()) c = 0 for i in range(t): x = int(input()) if abs(x-c) != 1: print('F') exit() else: c = x else: print('T')