Task: Program Execution
Input (English): K, U, 1845, 1349, K, 1087
Output (English): 3