Task: Program Execution
Input (English): M, D, 5, J, a
Output (English): [['M', 'D', '5', 'J'], ['M', 'D', '5', 'a'], ['M', 'D', 'J', 'a'], ['M', '5', 'J', 'a'], ['D', '5', 'J', 'a']]