On the first day, a patient takes one third of all pills from a container. On the next day, the patient takes one third of pills that are left in the container. All together, he took 15 pills from the container. How many pills there where in the container to begin with?