{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan style\u003d\"font-size: 11pt; text-align: justify;\"\u003eWhen someone calls Ivan lazy, he claims that it is his intelligence that helps him to be so. If his intelligence allows him to do something at less physical effort, why should he exert more? He also claims that he always uses his brain and tries to do some work at less effort; this is not his laziness, rather this is his intellectual smartness.\u003c/span\u003e\u003c/p\u003e\r\n\u003cp\u003e\r\n\t\u003cspan style\u003d\"font-size: 11pt; text-align: justify;\"\u003eOnce Ivan was asked to cut a pizza into seven pieces to distribute it among his friends. (Size of the pieces may not be the same. In fact, his piece will be larger than the others.) He thought a bit, and came to the conclusion that he can cut it into seven pieces by only three straight cuts through the pizza with a pizza knife. Accordingly, he cut the pizza in the following way (guess which one is Ivan\u0026#39;s piece):\u003c/span\u003e\u003c/p\u003e\r\n\u003cdiv class\u003d\"Section1\"\u003e\r\n\t\u003cp style\u003d\"text-align: center;\"\u003e\r\n\t\t\u003cimg src\u003d\"http://uva.onlinejudge.org/external/100/p10079.gif\" /\u003e\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoBodyText\" style\u003d\"TEXT-ALIGN: justify\"\u003e\r\n\u003c!--[if !supportEmptyParas]--\u003e\t\t\u003cspan style\u003d\"FONT-SIZE: 11pt; mso-bidi-font-size: 10.0pt\"\u003e\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"font-size: 11pt; text-indent: 0.5in;\"\u003eOne of his friends, who never believed in Ivan\u0026rsquo;s smartness, was startled at this intelligence. He thought, if Ivan can do it, why can\u0026rsquo;t my computer? So he tried to do a similar (but not exactly as Ivan\u0026#39;s, for Ivan will criticize him for stealing his idea) job with his computer. He wrote a program that took the number of straight cuts one makes through the pizza, and output a number representing the maximum number of pizza pieces it will produce.\u003c/span\u003e\u003c/p\u003e\r\n\t\u003cp class\u003d\"MsoBodyText\" style\u003d\"TEXT-ALIGN: justify\"\u003e\r\n\t\t\u003cspan style\u003d\"font-size: 11pt; text-indent: 0.5in;\"\u003eYour job here is to write a similar program. It is ensured that Ivan\u0026rsquo;s friend won\u0026rsquo;t criticize you for doing the same job he did.\u003c/span\u003e\u003c/p\u003e\r\n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan style\u003d\"font-size: 15px; text-align: justify;\"\u003eThe input file will contain a single integer N (0 \u0026lt;\u003d N \u0026lt;\u003d 210000000)\u003c/span\u003e\u003cspan style\u003d\"font-size: 15px; text-align: justify;\"\u003e\u0026nbsp;\u0026nbsp;\u003c/span\u003e\u003cspan style\u003d\"font-size: 15px; text-align: justify;\"\u003ein each line representing the number of straight line cuts one makes through the pizza. A negative number terminates the input.\u003c/span\u003e\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tOutput the maximum number of pizza pieces the given number of cuts can produce. Each line should contain only one output integer without any leading or trailing space.\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan style\u003d\"font-family: Courier;\"\u003e5\u003c/span\u003e\u003cbr style\u003d\"font-family: Courier;\" /\u003e\r\n\t\u003cspan style\u003d\"font-family: Courier;\"\u003e10\u003c/span\u003e\u003cbr style\u003d\"font-family: Courier;\" /\u003e\r\n\t\u003cspan style\u003d\"font-family: Courier;\"\u003e-100\u003c/span\u003e\u003c/p\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\t\u003cspan style\u003d\"font-family: Courier;\"\u003e16\u003c/span\u003e\u003cbr style\u003d\"font-family: Courier;\" /\u003e\r\n\t\u003cspan style\u003d\"font-family: Courier;\"\u003e56\u003c/span\u003e\u003c/p\u003e"}}]}