A certain organism begins as three cells. Each cell splits and becomes three cells at the end of two days. At the end of another two days, every cell of the organism splits and becomes three cells. This process lasts for a total of 8 days, and no cells die during this time. How many cells are there at the end of the 8th day?