Task: Program Execution
Input (English): 2, 6, ['M', '5109', '6937', 'E', '9741', '7423', '3857', 'y', '767', '2247', '1201', '479', '9767', 'd']
Output (English): 5109, y, d