Task: Program Execution
Input (English): 9165, 1717, J, 9283, 6317, K, 8003, 1955, 4825, 137
Output (English): 41402