A pizza is cut into an odd number of slices. Douglas eats three times as many slices as Hugh and Hugh has eaten 3 less than Rory and the pizza is finished. How many slices was the pizza cut in to begin with assuming they cut the largest slices possible.