Task: Program Execution
Input (English): V, 8111, Q, 9485, A, 8863, 7829, b, 3447, 6745, 7945, 6287, x, x, 6391, H, H, 2015, 7915, 2943, 407
Output (English): 8