All the rivers are magical, moment a worshiper crosses a river with any number of flowers, it becomes double. (For eg 1 flower becomes 2 flowers, 2 become 4 and so on).

How many minimum number of flowers a worshiper needs to carry from beginning such that he offers equal number of flowers in all the three temples, and he is left with zero flowers at the end of fourth river.