Task: Program Execution
Input (English): 5, 5, ['b', '9727', 'k', 'V', '2741', '5787', '8559', 'X', '2369', '1653']
Output (English): 1472