Task: Program Execution
Input (English): 3, d, Y, p
Output (English): [['3', 'd', 'Y'], ['3', 'd', 'p'], ['3', 'Y', 'p'], ['d', 'Y', 'p']]