n = int(input()) x = [int(input()) for _ in range(n)] a = 0 for i in x: b = abs(a - i) a = i if not b == 1: print('F') break else: print('T')