Task: Program Execution
Input (English): w, V, 4095, p, n, p
Output (English): 23, 22, 4095, 16, 14, 16