Task: Program Execution
Input (English): M, 3, 4, M, P
Output (English): [['M', '3', '4', 'M'], ['M', '3', '4', 'P'], ['M', '3', 'M', 'P'], ['M', '4', 'M', 'P'], ['3', '4', 'M', 'P']]