Task: Program Execution
Input (English): 5, 8, ['W', '9051', 'Q', '933', '3585', 'F', 'W', 'I', 'e', '9727', 's', '3305', '9957', 'q', '4417', '6037', '2713']
Output (English): 3585