Task: Program Execution
Input (English): 5, 5, ['7913', '9077', '57', '6343', '4725', 'H', '5319']
Output (English): 4725