One night 3 naughty boys stole a basketful of mangoes from a garden,hid the loot and went off to sleep.before retiring they did some quick counting and found that the fruits were less than hundred in number.
during the night one boy awoke,counted the mangoes and found that he could divide the mangoes into 3 equal parts if he first took one for himself.he then took one mangoe,ate it up,and took 1/3 of the rest,hid them separately and went back to sleep.
shortly thereafter another boy awoke,counted the mangoes and he again found that if he took one for himself the loot could be divided into 3 equal parts.he ate up one mango,bagged 1/3 of the remainder,hid them separately and went back to sleep.
in the morning when they all woke up,and counted their mangoes,they found that the remaining mangoes again totalled 1 more than could be divided into 3 equal parts.
how many mangoes did the boys steal?