Gregory gave a glass of water to each person at dinner. He put more than 2 ice cubes in each glass. Each glass had the same number of ice cubes. How many ice cubes could Gregory have used in all?