{"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杰森是畢業於台北土地規劃商業學校(簡稱土商)的室內設計師。\u003c/p\u003e\n\u003cp\u003e土商第87屆的校慶決定邀請杰森來改造學校的長方形大禮堂。經過縝密的規劃與設計,杰森決定將禮堂的地板鋪上一塊塊的正方形磁磚,以展現重複排列之美與象徵學校一屆接著一屆的傳承精神。\u003c/p\u003e\n\u003cp\u003e為了使磁磚排列整齊,我們規定所有的磁磚其邊必須平行於大禮堂的邊且不得切割,而若最後有未鋪上磁磚但無法擺下完整磁磚的部分則允許超出長方形範圍。\u003c/p\u003e\n\u003cp\u003e給你禮堂大小與瓷磚大小,請你幫傑森求出他最少必須使用的磁磚數吧!\u003c/p\u003e"}},{"title":"INPUT","value":{"format":"HTML","content":"\u003cp\u003e輸入僅一行,包含三整數\u003cb\u003en\u003c/b\u003e、\u003cb\u003em\u003c/b\u003e、\u003cb\u003ea\u003c/b\u003e(1 ≤ \u003cb\u003en\u003c/b\u003e、\u003cb\u003em\u003c/b\u003e、\u003cb\u003ea\u003c/b\u003e ≤ 10\u003csup\u003e9\u003c/sup\u003e),以一個空白隔開,依序表示禮堂的長寬及磁磚的邊長。\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e輸出一整數,為題目中所提到的值。\u003c/p\u003e"}},{"title":"SAMPLE INPUT 1","value":{"format":"HTML","content":"\u003cpre\u003e6 6 4\n\u003c/pre\u003e"}},{"title":"SAMPLE OUTPUT 1","value":{"format":"HTML","content":"\u003cpre\u003e4\n\u003c/pre\u003e"}}]}