Task: Program Execution
Input (English): 3, 1, m, r, n, 9
Output (English): [['3', '1', 'm', 'r', 'n'], ['3', '1', 'm', 'r', '9'], ['3', '1', 'm', 'n', '9'], ['3', '1', 'r', 'n', '9'], ['3', 'm', 'r', 'n', '9'], ['1', 'm', 'r', 'n', '9']]