European put option
If X <= S, then the payoff is 0.
If S < X, then the payoff is X - S.