There are 1224 students in grade 4 and 5 class. Mrs. Smith decided she would surprise her students with a pizza party! She wants to make sure each student gets three slices of pizza. If a medium pizza comes with eight slices. How many medium pizzas should she order?