using static System.Math; using System; public class hello { public static int p, q; static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); p = int.Parse(line[0]); q = int.Parse(line[1]); getAns(); } static bool calc(double t) { var p2 = (double)p; var q2 = (double)q; var c1 = t * t; var c2 = p2 + q2 * t * Log10(t) / Log10(2); return c1 - c2 <= 0d; } static void getAns() { var ok = 1d; var ng = 1000000000000000000d; var t = 0; while (t < 100) { var mid = ok + (ng - ok) / 2d; if (calc(mid)) ok = mid; else ng = mid; t++; } Console.WriteLine(ok); } }