Task: Program Execution
Input (English): S, 5, R
Output (English): [['S', '5'], ['S', 'R'], ['5', 'R']]