The sum of four consecutive odd integers w,x,y, and z is 24. What is the median of the set {w,x,y,z,24}?