{"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\n\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027$$$$$$\u0027, right: \u0027$$$$$$\u0027, display: true},\n {left: \u0027$$$\u0027, right: \u0027$$$\u0027, display: false},\n {left: \u0027$$\u0027, right: \u0027$$\u0027, display: true},\n {left: \u0027$\u0027, right: \u0027$\u0027, display: false}\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eПосле успешной сдачи всех зачетов Вася купил себе в подарок коробку, содержащую \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-1-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003en\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-1\" style\u003d\"width: 0.717em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.595em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.701em, 1000.58em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-2\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-3\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003en\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.686em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-1\"\u003en\u003c/script\u003e сладких эклеров. Вася решил каждое утро есть некоторое одинаковое число эклеров, пока они все не закончатся. Однако сосед Васи, Петя, заметил принесенную Васей коробку и тоже решил насладиться вкусом эклеров.\u003c/p\u003e\n\u003cp\u003eТеперь процесс поедания эклеров выглядит следующим образом: сначала Вася выбирает число \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-2-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-4\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-5\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-6\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-2\"\u003e\u003c/script\u003e, одинаковое для всех дней. Затем утром он съедает \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-3-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-7\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-8\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-9\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-3\"\u003ek\u003c/script\u003e эклеров из коробки (или доедает все эклеры, если их осталось меньше \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-4-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-10\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-11\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-12\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-4\"\u003ek\u003c/script\u003e), после этого Петя вечером съедает \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-5-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e\u003c/mn\u003e\u003cmi mathvariant\u003d\u0026quot;normal\u0026quot;\u003e\u0026amp;#x0025;\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-13\" style\u003d\"width: 2.265em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 1.845em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.333em, 1001.79em, 2.496em, -1000em); top: -2.262em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-14\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-15\" style\u003d\"font-family: MathJax_Main;\"\u003e10\u003c/span\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-16\" style\u003d\"font-family: MathJax_Main;\"\u003e%\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.262em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.139em; border-left: 0px solid; width: 0px; height: 1.11em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e\u003c/mn\u003e\u003cmi mathvariant\u003d\"normal\"\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-5\"\u003e10\\%\u003c/script\u003e \u003cspan class\u003d\"tex-font-style-bf\"\u003eоставшихся\u003c/span\u003e эклеров. Если эклеры еще не закончились, то на следующий день Вася опять съедает \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-6-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-17\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-18\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-19\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-6\"\u003ek\u003c/script\u003e эклеров, а Петя — \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-7-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e\u003c/mn\u003e\u003cmi mathvariant\u003d\u0026quot;normal\u0026quot;\u003e\u0026amp;#x0025;\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-20\" style\u003d\"width: 2.265em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 1.845em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.333em, 1001.79em, 2.496em, -1000em); top: -2.262em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-21\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-22\" style\u003d\"font-family: MathJax_Main;\"\u003e10\u003c/span\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-23\" style\u003d\"font-family: MathJax_Main;\"\u003e%\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.262em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.139em; border-left: 0px solid; width: 0px; height: 1.11em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e\u003c/mn\u003e\u003cmi mathvariant\u003d\"normal\"\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-7\"\u003e10\\%\u003c/script\u003e от оставшихся и так далее.\u003c/p\u003e\n\u003cp\u003eЕсли число эклеров не делится на \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-8-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-24\" style\u003d\"width: 1.253em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 1.012em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.417em, 1000.97em, 2.462em, -1000em); top: -2.262em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-25\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-26\" style\u003d\"font-family: MathJax_Main;\"\u003e10\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.262em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.098em; border-left: 0px solid; width: 0px; height: 0.968em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-8\"\u003e10\u003c/script\u003e, то Петя округляет «свою» долю в меньшую сторону, например, если в коробке было \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-9-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-27\" style\u003d\"width: 1.253em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 1.012em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.407em, 1001em, 2.462em, -1000em); top: -2.262em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-28\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-29\" style\u003d\"font-family: MathJax_Main;\"\u003e97\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.262em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.098em; border-left: 0px solid; width: 0px; height: 0.98em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-9\"\u003e97\u003c/script\u003e эклеров, то Петя съест только \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-10-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-30\" style\u003d\"width: 0.598em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.476em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.417em, 1000.43em, 2.462em, -1000em); top: -2.262em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-31\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-32\" style\u003d\"font-family: MathJax_Main;\"\u003e9\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.262em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.098em; border-left: 0px solid; width: 0px; height: 0.968em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-10\"\u003e9\u003c/script\u003e из них. В частности, если в коробке уже меньше \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-11-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-33\" style\u003d\"width: 1.253em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 1.012em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.417em, 1000.97em, 2.462em, -1000em); top: -2.262em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-34\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-35\" style\u003d\"font-family: MathJax_Main;\"\u003e10\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.262em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.098em; border-left: 0px solid; width: 0px; height: 0.968em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e\u003c/mn\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-11\"\u003e10\u003c/script\u003e эклеров, то Петя не будет их есть вообще.\u003c/p\u003e\n\u003cp\u003eОпределите, какое наименьшее число \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-12-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-36\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-37\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-38\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-12\"\u003ek\u003c/script\u003e может выбрать Вася такое, что он съест не менее половины от всех \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-13-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-39\" style\u003d\"width: 0.717em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.595em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.701em, 1000.58em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-40\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-41\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003en\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.686em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-13\"\u003en\u003c/script\u003e эклеров, которые были в коробке изначально. Заметьте, что число \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-14-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-42\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-43\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-44\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003e\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-14\"\u003ek\u003c/script\u003e должно быть натуральным.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003eВ первой строке содержится натуральное число \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-15-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003en\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-45\" style\u003d\"width: 0.717em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.595em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.701em, 1000.58em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-46\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-47\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.686em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003en\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-15\"\u003e\u003c/script\u003e (\u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-16-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmn\u003e1\u003c/mn\u003e\u003cmo\u003e\u0026amp;#x2264;\u003c/mo\u003e\u003cmi\u003en\u003c/mi\u003e\u003cmo\u003e\u0026amp;#x2264;\u003c/mo\u003e\u003cmsup\u003e\u003cmn\u003e10\u003c/mn\u003e\u003cmrow class\u003d\u0026quot;MJX-TeXAtom-ORD\u0026quot;\u003e\u003cmn\u003e18\u003c/mn\u003e\u003c/mrow\u003e\u003c/msup\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-48\" style\u003d\"width: 6.67em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 5.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.279em, 1005.54em, 2.638em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-49\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-50\" style\u003d\"font-family: MathJax_Main;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"mo\" id\u003d\"MathJax-Span-51\" style\u003d\"font-family: MathJax_Main; padding-left: 0.278em;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-52\" style\u003d\"font-family: MathJax_Math; font-style: italic; padding-left: 0.278em;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"mo\" id\u003d\"MathJax-Span-53\" style\u003d\"font-family: MathJax_Main; padding-left: 0.278em;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"msubsup\" id\u003d\"MathJax-Span-54\" style\u003d\"padding-left: 0.278em;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 1.782em; height: 0px;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(3.144em, 1000.96em, 4.189em, -1000em); top: -3.988em; left: 0em;\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-55\" style\u003d\"font-family: MathJax_Main;\"\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 3.988em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"position: absolute; top: -4.381em; left: 1em;\"\u003e\u003cspan class\u003d\"texatom\" id\u003d\"MathJax-Span-56\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-57\"\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-58\" style\u003d\"font-size: 70.7%; font-family: MathJax_Main;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 3.988em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.237em; border-left: 0px solid; width: 0px; height: 1.345em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmn\u003e1\u003c/mn\u003e\u003cmo\u003e≤\u003c/mo\u003e\u003cmi\u003en\u003c/mi\u003e\u003cmo\u003e≤\u003c/mo\u003e\u003cmsup\u003e\u003cmn\u003e10\u003c/mn\u003e\u003cmrow class\u003d\"MJX-TeXAtom-ORD\"\u003e\u003cmn\u003e18\u003c/mn\u003e\u003c/mrow\u003e\u003c/msup\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-16\"\u003e1 \\leq n \\leq 10^{18}\u003c/script\u003e)\u0026nbsp;— изначальное количество эклеров.\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003eВывести единственное число — наименьшее значение \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-17-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003ek\u003c/mi\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-59\" style\u003d\"width: 0.658em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 0.536em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1000.52em, 2.511em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-60\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-61\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.085em; border-left: 0px solid; width: 0px; height: 0.989em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003ek\u003c/mi\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-17\"\u003e\u003c/script\u003e, удовлетворяющее Васю.\u003c/p\u003e"}},{"title":"Example","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\u003e68\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\u003cbr\u003e\u003c/pre\u003e\n \u003c/div\u003e\n\u003c/div\u003e"}},{"title":"Note","value":{"format":"HTML","content":"\u003cp\u003eВ примере количество эклеров при \u003cspan class\u003d\"MathJax_Preview\" style\u003d\"color: inherit;\"\u003e\u003c/span\u003e\u003cspan class\u003d\"MathJax\" id\u003d\"MathJax-Element-18-Frame\" tabindex\u003d\"0\" style\u003d\"position: relative;\" data-mathml\u003d\"\u003cmath xmlns\u003d\u0026quot;http://www.w3.org/1998/Math/MathML\u0026quot;\u003e\u003cmi\u003ek\u003c/mi\u003e\u003cmo\u003e\u003d\u003c/mo\u003e\u003cmn\u003e3\u003c/mn\u003e\u003c/math\u003e\" role\u003d\"presentation\"\u003e\u003cnobr aria-hidden\u003d\"true\"\u003e\u003cspan class\u003d\"math\" id\u003d\"MathJax-Span-62\" style\u003d\"width: 2.86em; display: inline-block;\"\u003e\u003cspan style\u003d\"display: inline-block; position: relative; width: 2.381em; height: 0px; font-size: 120%;\"\u003e\u003cspan style\u003d\"position: absolute; clip: rect(1.449em, 1002.34em, 2.522em, -1000em); top: -2.321em; left: 0em;\"\u003e\u003cspan class\u003d\"mrow\" id\u003d\"MathJax-Span-63\"\u003e\u003cspan class\u003d\"mi\" id\u003d\"MathJax-Span-64\" style\u003d\"font-family: MathJax_Math; font-style: italic;\"\u003ek\u003c/span\u003e\u003cspan class\u003d\"mo\" id\u003d\"MathJax-Span-65\" style\u003d\"font-family: MathJax_Main; padding-left: 0.278em;\"\u003e\u003d\u003c/span\u003e\u003cspan class\u003d\"mn\" id\u003d\"MathJax-Span-66\" style\u003d\"font-family: MathJax_Main; padding-left: 0.278em;\"\u003e3\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; width: 0px; height: 2.321em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/span\u003e\u003cspan style\u003d\"display: inline-block; overflow: hidden; vertical-align: -0.098em; border-left: 0px solid; width: 0px; height: 1.002em;\"\u003e\u003c/span\u003e\u003c/span\u003e\u003c/nobr\u003e\u003cspan class\u003d\"MJX_Assistive_MathML\" role\u003d\"presentation\"\u003e\u003cmath xmlns\u003d\"http://www.w3.org/1998/Math/MathML\"\u003e\u003cmi\u003ek\u003c/mi\u003e\u003cmo\u003e\u003d\u003c/mo\u003e\u003cmn\u003e3\u003c/mn\u003e\u003c/math\u003e\u003c/span\u003e\u003c/span\u003e\u003cscript type\u003d\"math/tex\" id\u003d\"MathJax-Element-18\"\u003e\u003c/script\u003e будет изменяться следующим образом (первым ест Вася):\u003c/p\u003e68→65→59→56→51→48→44→41→37→34→31→28→26→23→21→18→17→14→13→10→9→6→6→3→3→0\u003cbr\u003e\nИтого, Вася съест 39 эклеров, а Петя — 29."}}]}