{"trustable":true,"prependHtml":"\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 async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003eAfter exercising, most people find it very pleasant to drink cola. However, Seeyou does not think so. Because every time Seeyou buys cola, Ah Niu requests to share this bottle of cola with Seeyou, and they must drink the same amount. But Seeyou only has two cups, with capacities of N milliliters and M milliliters respectively. The volume of cola is S (S\u0026lt;101) milliliters (exactly one bottle), and they can pour cola between the three of them (without scale, and S\u003d\u003dN+M, 101>S>0, N>0, M>0). Smart ACMERs, can they divide the cola equally? If yes, please output the minimum number of times to pour. If not, output \"NO\".\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"Three integers: S for the volume of cola, N and M for the capacities of the two cups, ending with \"0 0 0\"."}},{"title":"Output","value":{"format":"HTML","content":"If it is possible to divide equally, please output the minimum number of times to pour. Otherwise, output \"NO\"."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\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\u003e7 4 3\r\n4 1 3\r\n0 0 0\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eNO\r\n3\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e"}}]}