Task: Program Execution
Input (English): 4187, K, 1165, 7595, 5963, z, 7159, 2929, 135, Q, 5599
Output (English): 8