Task: Program Execution
Input (English): 5, d, Q, Z, P, M
Output (English): [['5', 'd', 'Q', 'Z', 'P'], ['5', 'd', 'Q', 'Z', 'M'], ['5', 'd', 'Q', 'P', 'M'], ['5', 'd', 'Z', 'P', 'M'], ['5', 'Q', 'Z', 'P', 'M'], ['d', 'Q', 'Z', 'P', 'M']]