Who doesn't love cakes and this weekend our puzzle is all about cakes. Now read the puzzle carefully and help Joey celebrate her grandma's birthday.
Joey wanted to surprise grandma on her birthday. She decided to visit her with a cake. So she bought all the ingredients and started making cake. Then she realized that, she had to cross 5 toll gates on her way to grandma's home. They all have a special rule if you want to pass through those tolls.
The tolls don't charge money. Instead they will take half of the number of cakes you have and then they will return one cake. That means if you have 12 cakes. first they will take 6 (Half of 12) cakes from you and then they will return 1 cake. So after passing that toll you will have 7 cakes.
This rule is same for all the 5 tolls on the way. Joey was puzzled and could not decide how many minimum number of cakes she should make so that she can give at least 1 full cake to grandma.
Can you help Joey to decide the number?