Task: Program Execution
Input (English): 5, 9, ['X', '6543', '1123', '5967', 'x', '9197', '2865', 'r', 'V', 'c']
Output (English): 12062