Rich likes to take long walks through town.  First he walks 20 feet from his house to the sidewalk.  Then he walks 200 feet down the sidewalk to the end of the road.  Then he makes a left and walks double his total distance so far until he reaches the next intersection.  Then he walks half the total distance up to this point again to the end of his route, before turning around and walking the same path all the way back home.  How many feet did Rich walk? Let's think step by step and output the final answer after "####".
user
Rich walks 20+200= <<20+200=220>>220 feet to get to the end of the road.
He then walks double that distance, 220*2= <<220*2=440>>440 feet to the next intersection.
This makes a total of 220+440= <<220+440=660>>660 feet.
He then walks half that distance, 660/2= <<660/2=330>>330 feet to get to the end of his route.
This makes a total of 660+330=<<660+330=990>>990 feet so far.
He then walks that same distance back, for a total of 990*2= <<990*2=1980>>1980 feet in total.
#### 1980
Rich likes to take long walks through town.  First he walks 20 feet from his house to the sidewalk.  Then he walks 200 feet down the sidewalk to the end of the road.  Then he makes a left and walks double his total distance so far until he reaches the next intersection.  Then he walks half the total distance up to this point again to the end of his route, before turning around and walking the same path all the way back home.  How many feet did Rich walk?
train