Task: Program Execution
Input (English): 1, 5, ['q', '2269', '6477', '3473', 'Z', '9785', '6957', 'k', 'q', 's', '3305', '1201', 'X', '8387']
Output (English): 12219