Task: Program Execution
Input (English): 3, 7, ['4187', 'b', 'Y', '4555', 'L', 'A', '419', 'D', '6617', 'E', 'u', '3157', '7843', '1237']
Output (English): 4974