Task: Program Execution
Input (English): 12, 17, ['2489', '5195', '309', '5375', '967', '4019', 'a', 'X', '7005', '853', '5383', 'f', 'G', 'd', '9405', '585', '9819', 'v', 'C', '1781', 'P']
Output (English): 19809