A doctor has three examination rooms. There are six patients in the waiting room. In how many different ways can the patients be assigned to the examination rooms?