Task: Program Execution
Input (English): 2, 2, ['H', '8477', '3461', '5461', '1935', 'U', 'Z', '9303']
Output (English): 8477