Task: Program Execution
Input (English): 8137, D, 2463, 3717, 7347, 9167, K
Output (English): 5