Task: Program Execution
Input (English): 8105, 65, 9723, 491, K
Output (English): 4