Task: Program Execution
Input (English): 1, M, 8, d, 7, 1
Output (English): [['1', 'M', '8', 'd', '7'], ['1', 'M', '8', 'd', '1'], ['1', 'M', '8', '7', '1'], ['1', 'M', 'd', '7', '1'], ['1', '8', 'd', '7', '1'], ['M', '8', 'd', '7', '1']]