Task: Program Execution
Input (English): w, n, H, 4689, 3059, 9755
Output (English): 3