Task: Program Execution
Input (English): 10, 15, ['M', '9365', '5293', '4377', 'z', '2767', '7595', 'z', '1347', 'W', '4981', '5477', '6475', 'W', 'J', '4391', '9749']
Output (English): JW647554774981W