Knock-out put option

If X <= S, or S <= H for some time T, then the payoff is 0.
If S < X, and S > H for all time T, then the payoff is X - S.