Are you able to measure exactly 4 pints?
If you are interested in the theory of this problem, you should visit "Cut the Knot" (external link).