Task: Program Execution
Input (English): 7, 13, ['5319', 'X', 'x', 'C', '5099', '4393', '3799', '9523', 'h', '8729', 'K', '107', '3499']
Output (English): 25657