Sam Squirrel gathered half the nuts for winter in July, one fourth in August, one-eighth in September. In Octoberhe gathered the last 25 nuts. How many did he gather in all?