Task: Program Execution
Input (English): 5, w, 2, p, X, m, 2
Output (English): [['5', 'w', '2', 'p', 'X', 'm'], ['5', 'w', '2', 'p', 'X', '2'], ['5', 'w', '2', 'p', 'm', '2'], ['5', 'w', '2', 'X', 'm', '2'], ['5', 'w', 'p', 'X', 'm', '2'], ['5', '2', 'p', 'X', 'm', '2'], ['w', '2', 'p', 'X', 'm', '2']]