Task: Program Execution
Input (English): 5, 5, ['E', 'a', 'j', 'K', '4003', '5799', '297', '6949', '2285', '4263', 'F', 'h']
Output (English): 4003