A devotee goes to three temples, temple1, temple2 and temple3 one after the other.
In front of each temple, there is a small pool. So while going to each temple
he takes some flowers with him and takes holy bath in a pool belongs to that temple.
If he takes a bath in one pool the flowers which he had earlier get doubled.
One day the devotee goes to a temple1 with flowers and takes a bath in a pool and the
flowers get doubled. He keeps some flowers for god and move to temple2
along flowers he left with. Again takes a bath in a pool, flowers get doubled and keeps
the same number of flowers which he has kept in temple1. Again the same procedure continues in temple3 where he keeps the flowers which he has kept in temple1 and
temple2 and comes out with empty hands (no flowers left out).
1. What are the initial number of flowers the devotee had?
2. How many flowers did he keep in each temple?