How do you lose weight eating cake?

You can eat all cakes you want. But you need to eat fewer calories than you consume each day.