Tom, Dick and Harry stole some mangoes from their neighbors garden.

Tom woke up in the middle of the night , ate one and took one-third.

Dick woke up a little later, ate one and took one third.

A few hours later Harry woke up, ate one mango and took one third.

In the morning they counted the mangoes, threw away one rotten mango

and divided the remaining mangoes equally.

How many mangoes had they stolen? There are many answers to this puzzle, try to find the minimum no. of mangoes they had stolen?