Task: Program Execution
Input (English): 1, ['4989', '3047', '7359', '1365', 'H']
Output (English): 4989