Task: Program Execution
Input (English): w, 7129, 935, 6313, z, 5005, K, 6021, j, 7781, B, J, 409, 5387
Output (English): 8