Task: Program Execution
Input (English): K, Z, 2661, 1901, 7771, 3841, U, 5119, 7735, 3347, 4179, Y
Output (English): 4