using System; using System.Collections.Generic; using System.Collections; using System.Collections.Specialized; using System.Linq; using System.Text; using System.IO; using System.Reflection; using static System.Math; using System.Numerics; using System.Threading; using System.Runtime.CompilerServices; using System.Diagnostics; //using nint=System.Int32; static class Program{ const int mod=(int)1e9+7; const double eps=1e-11; static void Main(){ Sc sc=new Sc(); var s=sc.Da; s[0]*=4*7; s[1]*=4*7; Console.WriteLine("{0}",Gss(0,Min(s[0]/21,s[1]/7))); double Gss(double a,double b){ double lb=a,ub=b,c1=0,c2=0,d1=0,d2=0; c1=(lb*phi+ub)/(1+phi); c2=(lb+phi*ub)/(1+phi); bool bo=true; d1=Fut(c1); for(int i = 0;i<100;i++) { if(bo){d2=Fut(c2);} else{d1=Fut(c1);} if(d1(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i(int n,Func f){var a=new T[n];for(int i=0;i