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