Task: Program Execution
Input (English): 4, 17, ['2051', 'K', 'F', '3419', 'J', '8311', '8829', '3787', 'X', 'G', 'T', 'P', 'e', 'b', '9387', '4679', '303', '9383', '2963']
Output (English): 38715