Task: Program Execution
Input (English): 2, 3, ['w', 'X', '4579', '1871', 'J', 'J', 'r', 'o', '1797', 'h']
Output (English): 4579, X