Task: Program Execution
Input (English): 5, 8, ['3913', 'E', '8115', '5991', '5377', 'x', 'K', '6489', '2157', '2443', 'R', '7119']
Output (English): 11866