Sofia's grandfather has 18 sacks of candies. There are 348 pieces in each sack of candies. How many candies does Sofia's grandfather have in all?​