Task: Program Execution
Input (English): 5, 7, ['K', 'o', 'j', 'F', '7583', '5985', '7881', '183', 'J']
Output (English): 21449