n = int(input()) s = [int(input()) for i in range(n)] s0 = s[:-1] s1 = s[1:] if all(i-j<2 for i,j in zip(s0, s1)): print('T') else: print('F')