Task: Program Execution
Input (English): 4, 9, ['2147', 'X', 'o', 'q', '3403', '2177', '6631', '5327', '1949', 'A', 'd']
Output (English): 19487