Task: Program Execution
Input (English): X, P, 7, a, 4, m
Output (English): [['X', 'P', '7', 'a', '4'], ['X', 'P', '7', 'a', 'm'], ['X', 'P', '7', '4', 'm'], ['X', 'P', 'a', '4', 'm'], ['X', '7', 'a', '4', 'm'], ['P', '7', 'a', '4', 'm']]