Task: Program Execution
Input (English): 4, 21, ['Z', 'J', '6107', '4395', '4903', '2405', 'X', 'a', 'v', 'W', '777', 'A', '2689', 'q', '3395', '4131', 'r', '5499', '5555', 'd', '3483', 'T', '1391', 'l', 'f', 'Q', 'b', 'o']
Output (English): 37232