{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e \u003cspan\u003eTheatre\u003c/span\u003e Square in the capital city of \u003cspan\u003eBerland\u003c/span\u003e has a rectangular shape with the size \u003cspan\u003e\u003ci\u003en\u003c/i\u003e × \u003ci\u003em\u003c/i\u003e\u003c/span\u003e meters. On the occasion of the city\u0027s anniversary, a decision was taken to pave the Square with square granite flagstones. Each flagstone is of the size \u003cspan\u003e\u003ci\u003ea\u003c/i\u003e × \u003ci\u003ea\u003c/i\u003e\u003c/span\u003e.\u003c/p\u003e \n\u003cp\u003e What is the least number of flagstones needed to pave the Square? It\u0027s allowed to cover the surface larger than the \u003cspan\u003eTheatre\u003c/span\u003e Square, but the Square has to be covered. It\u0027s not allowed to break the flagstones. The sides of flagstones should be parallel to the sides of the Square.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e The input contains three positive integer numbers in the first line: \u003cspan\u003e\u003ci\u003en\u003c/i\u003e, \u003ci\u003em\u003c/i\u003e\u003c/span\u003e and \u003cspan\u003e\u003ci\u003ea\u003c/i\u003e\u003c/span\u003e (\u003cspan\u003e1 ≤ \u003ci\u003en\u003c/i\u003e, \u003ci\u003em\u003c/i\u003e, \u003ci\u003ea\u003c/i\u003e ≤ 10\u003csup\u003e9\u003c/sup\u003e\u003c/span\u003e).\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e Write the needed number of flagstones.\u003c/p\u003e"}},{"title":"Example","value":{"format":"HTML","content":"\u003cdiv\u003e \n \u003cdiv\u003e\n Input\n \u003c/div\u003e \n \u003cpre\u003e\r\n\t6 6 4\r\n\u003c/pre\u003e \n\u003c/div\u003e \n\u003cdiv\u003e \n \u003cdiv\u003e\n Output\n \u003c/div\u003e \n \u003cpre\u003e\r\n\t4\r\n\u003c/pre\u003e \n\u003c/div\u003e"}}]}