{"raw_statement":[{"iden":"problem statement","content":"A superman, Takahashi, is about to jump off the roof of a building to help a person in trouble on the ground. Takahashi's planet has a constant value $g$ that represents the strength of gravity, and the time it takes for him to reach the ground after starting to fall is $\\frac{A}{\\sqrt{g}}$.\nIt is now time $0$, and $g = 1$. Takahashi will perform the following operation as many times as he wants (possibly zero).\n\n*   Use a superpower to increase the value of $g$ by $1$. This takes a time of $B$.\n\nThen, he will jump off the building. After starting to fall, he cannot change the value of $g$. Additionally, we only consider the time it takes to perform the operation and fall.\nFind the earliest time Takahashi can reach the ground."},{"iden":"constraints","content":"*   $1 \\leq A \\leq 10^{18}$\n*   $1 \\leq B \\leq 10^{18}$\n*   All values in the input are integers."},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$A$ $B$"},{"iden":"sample input 1","content":"10 1"},{"iden":"sample output 1","content":"7.7735026919\n\n*   If he performs the operation zero times, he will reach the ground at time $1\\times 0+\\frac{10}{\\sqrt{1}} = 10$.\n*   If he performs the operation once, he will reach the ground at time $1\\times 1+\\frac{10}{\\sqrt{2}} \\fallingdotseq 8.07$.\n*   If he performs the operation twice, he will reach the ground at time $1\\times 2+\\frac{10}{\\sqrt{3}} \\fallingdotseq 7.77$.\n*   If he performs the operation three times, he will reach the ground at time $1\\times 3+\\frac{10}{\\sqrt{4}} = 8$.\n\nPerforming the operation four or more times will only delay the time to reach the ground. Therefore, it is optimal to perform the operation twice before jumping off, and the answer is $2+\\frac{10}{\\sqrt{3}}$."},{"iden":"sample input 2","content":"5 10"},{"iden":"sample output 2","content":"5.0000000000\n\nIt is optimal not to perform the operation at all."},{"iden":"sample input 3","content":"1000000000000000000 100"},{"iden":"sample output 3","content":"8772053214538.5976562500"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}