n = int(input()) a = [0] + list(int(input()) for i in range(n)) for i in range(1, len(a)): if abs(a[i] - a[i - 1]) != 1: print('F') quit() print('T')