Task: Program Execution
Input (English): w, 4355, 3373, 8385, 3979, h, C, W, 973, C, h
Output (English): 6