A bakery sold 246 vanilla cupcakes in a day, which was 82% of the total number of cupcakes sold that day. How many total cupcakes did the bakery sell that day?