{"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":"\u003cstyle type\u003d\u0027text/css\u0027\u003e .input, .output {border: 1px solid #888888;} .output {margin-bottom:1em;position:relative;top:-1px;} .output pre,.input pre {background-color:#EFEFEF;line-height:1.25em;margin:0;padding:0.25em;} .title {background-color:#FFFFFF;border-bottom: 1px solid #888888;font-family:arial;font-weight:bold;padding:0.25em;} \u003c/style\u003e \u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027]], displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027]]}\n });\n \u003c/script\u003e\n \u003cscript type\u003d\"text/javascript\" async\n src\u003d\"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\"\u003e\n \u003c/script\u003e\n\u003cp\u003e一天涵神玩了乐乐的switch后对zly说:“zls,我也想要一个switch。”但是谁想到zls是一个钢铁直男,对涵神说:“这不双十一快到了,我看switch降价了,你要不趁着双十一买一个?”\n涵神听后失望的点开了淘宝,发现果然switch在双十一降价了,但是商家并没有明确给出switch的价格,只告诉涵神价格在1-n元。\u003cbr\u003e\n然而涵神不想掏钱,既然zls不表态那她只能去低价收购淘宝无门槛红包。\u003cbr\u003e\n但是淘宝有个规定每种面值的红包只能用一次,且红包里的钱必须恰好使用完才可以使用。\u003cbr\u003e\n而只会掰手指头数数的涵神自然算不清她到底需要买几种不同面值的红包才可以购买到switch,于是她找到了你来帮她解决问题。\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e输入只有一行,包括一个整数n(1\u003c\u003dn\u003c\u003d10^9) ,代表switch的双十一价格在1-n元不等\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\n输出只有一行,包括一个整数,代表涵神最少需要购买多少无门槛红包才可以万无一失的买到switch。\u003c/p\u003e"}},{"title":"Examples","value":{"format":"HTML","content":"\u003cdiv class\u003d\"sample-test\"\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e6\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e3\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"input\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Input\n \u003c/div\u003e\n \u003cpre\u003e2\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n \u003cdiv class\u003d\"output\"\u003e\n \u003cdiv class\u003d\"title\"\u003e\n Output\n \u003c/div\u003e\n \u003cpre\u003e2\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eIn the first example, three packets with 1, 2 and 3 coins can be made to get any amount x (1≤ x≤ 6).\u003c/p\u003e\n\u003cul\u003e \n \u003cli\u003e To get 1 use the packet with 1 coin. \u003c/li\u003e\n \u003cli\u003e To get 2 use the packet with 2 coins. \u003c/li\u003e\n \u003cli\u003e To get 3 use the packet with 3 coins. \u003c/li\u003e\n \u003cli\u003e To get 4 use packets with 1 and 3 coins. \u003c/li\u003e\n \u003cli\u003e To get 5 use packets with 2 and 3 coins \u003c/li\u003e\n \u003cli\u003e To get 6 use all packets. \u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eIn the second example, two packets with 1 and 1 coins can be made to get any amount x (1≤ x≤ 2).\u003c/p\u003e"}}]}