t = int(input()) x = 0 flg = True for _ in range(t): nx = int(input()) if abs(nx-x)!=1: flg = False break else: x = nx print('T' if flg else 'F')