Task: Program Execution
Input (English): K, 6961, W, w
Output (English): 1, 3, 4