once upon a time there was mango farm so one kid decided to go inside get some fruits(obviously mango..;)) but ther was tight security around farm basically there were three gates whihc he needs to cross and each gate is secured by one guard so he decided to had deal wiht every guard that whatever fruits he will collect he will give half of toal and +1 to that guard by the time he reached outside the farm he had only 1 mango left.So what do u think how many mangoes did he taken from farm?