Task: Program Execution
Input (English): 2, 8, ['t', 'r', '8323', '7337', 'M', 'J', 'r', '5821', '4977', '3001']
Output (English): r, 8323, 7337, M, J, r, 5821