When dealing with only two outcomes, one might use \begin{equation*} S = \text{{ success, failure }}. \end{equation*} Choose \begin{gather*} X( \text{success})=1\\ X( \text{failure})=0. \end{gather*} Then, \(R\) = {0,1}.