Task: Program Execution
Input (English): 4, 11, ['3583', '9385', 'x', '2409', 'C', '4581', 'W', '3903', '2723', '9507', '8551', 'R', '4423', 'B', '2051', '8471', 'a', '5747', 'N', 'X', '9737', '5351']
Output (English): 31674