{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e\n\t\u003cp\u003eRichard Phillips Feynman was a well known American physicist and a recipient of the Nobel Prize in Physics. He worked in theoretical physics and also pioneered the field of quantum computing. He visited South America for ten months, giving lectures and enjoying life in the tropics. He is also known for his books \"Surely You\u0027re Joking, Mr. Feynman!\" and \"What Do You Care What Other People Think?\", which include some of his adventures below the equator.\u003c/p\u003e\r\n\u003cp\u003eHis life-long addiction was solving and making puzzles, locks, and cyphers. Recently, an old farmer in South America, who was a host to the young physicist in 1949, found some papers and notes that is believed to have belonged to Feynman. Among notes about mesons and electromagnetism, there was a napkin where he wrote a simple puzzle: \"how many different squares are there in a grid of \u003cem\u003eN\u003c/em\u003e ×\u003cem\u003eN\u003c/em\u003e squares?\".\u003c/p\u003e\r\n\u003cp\u003eIn the same napkin there was a drawing which is reproduced below, showing that, for \u003cem\u003eN\u003c/em\u003e\u003d2, the answer is 5. \u003cbr\u003e\u003c/p\u003e\r\n\u003cp\u003e\u003cimg src\u003d\"CDN_BASE_URL/e3b68bfb8a0be86126be6eb0283e8735?v\u003d1715831071\" border\u003d\"0\" alt\u003d\"subir imagenes\"\u003e\u003c/p\u003e\r\n\u003ch3\u003eInput\u003c/h3\u003e\r\n\u003cp\u003eThe input contains several test cases. Each test case is composed of a single line, containing only one integer \u003cem\u003eN\u003c/em\u003e, representing the number of squares in each side of the grid (1 ≤ \u003cem\u003eN\u003c/em\u003e ≤ 100).\u003c/p\u003e\r\n\u003cp\u003eThe end of input is indicated by a line containing only one zero.\u003c/p\u003e\r\n\u003ch3\u003eOutput\u003c/h3\u003e\r\n\u003cp\u003eFor each test case in the input, your program must print a single line, containing the number of different squares for the corresponding input.\u003c/p\u003e\r\n\u003ch3\u003eExample\u003c/h3\u003e\r\n\u003cdiv\u003e\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e2\r\n1\r\n8\r\n0\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e5\r\n1\r\n204\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e\n\u003c/div\u003e"}}]}