# coding: utf-8 # Your code here! p = 0 t = int(input()) for i in range(t): x = int(input()) if x == p + 1: p += 1 elif x == p - 1: p -= 1 else: print('F') break else: print('T')