Following their usual business practices, B&C purchased the cheapest killer robot on the market to take care of the zombies. Then, they took the killer robot's arm off to shelve books. When given a load of books, the arm will travel up and down the shelves of the library carefully putting away the books. If the robot arm isn't properly reset after every 100,000 meters of travel, it will start up its flamethrower (which is undesirable in a building filled with paper). It's important to keep track of the robots total travel distance to ensure that it is maintained properly. In addition, the ancient computer used to control the robot arm is prone to overheating (and catching fire). It's critical that the code used to estimate travel distance be as efficient as possible to avoid overheating the system. And that's where you come in.