current = 0 # 現在の X 座標 for _ in range(int(input())): x = int(input()) if abs(current - x) != 1: print('F') break current = x else: print('T')