Jim visits the barber every 27 days. Ralph visits the barber every 9 days. Pete visits the barber every 18 days. If all three visit the barber on the same day, in how many days will they all visit the barber on the same day again?