Task: Program Execution
Input (English): 4, 5, ['K', '1521', '3987', '8995', 'J', 'k', '3079', 'v', '1761', '481', 'W', 'q', 'n', 'b', 'q', 'V']
Output (English): 8995