Task: Program Execution
Input (English): 3, 14, ['6277', 'X', '5721', '9077', '4157', 'O', 'm', '6597', '1511', '3075', '9473', 'a', '9687', 'C', 'b', 'G', 'd']
Output (English): 49298