A pet store had 18 puppies. In 1 day, they buy 3 puppies and put all of them into cages with 5 in each cage. How many cages did they use?