Task: Program Execution
Input (English): 5, 8, ['9817', 'Q', 'W', '6741', '4543', '3105', 'B', 'B', 'E', '5087', '1923', '9841', 'I', '2211', '9157', '9483', '5153']
Output (English): 7648