Diplomas
When Peter was in school, he often participated in Olympiads in computer science, mathematics, and physics. Since he was quite capable and studied hard, he received diplomas at many of these Olympiads. By the end of school, he had accumulated diplomas, and, as it turned out, they all had the same dimensions: in width and in height.
Now Peter studies at one of the best universities and lives in a hostel with his classmates. He decided to decorate his room by hanging his diplomas from school Olympiads on one of the walls. Since it is difficult to attach diplomas to a concrete wall, he decided to buy a special cork board to attach to the wall and hang diplomas on it. To make this setup look more attractive, Peter wants the board to be square and take up as little space on the wall as possible. Each diploma must be placed strictly in a rectangle. Diplomas must not be rotated degrees. Rectangles corresponding to different diplomas should not have common interior points.
Write a program that computes the minimum size of the square board Peter needs to accommodate all his diplomas.
Input
Three integers .
Output
Print the required minimum size of the square board.