Some nifty googling (actually whatever search engine Duck Duck Go actually uses - Bing?) suggests that the lowest number of pints you can drink to get an exact number of half litres is 22 (near enough exactly 25 half litres).
So I'd suggest the answer is both carefully and in vast quantities.
I...