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