\begin{gather*} X( \text{success})=1\\ X( \text{failure})=0. \end{gather*}
in-context