puts'?0 0?1 0!' $>.flush t=gets.to_i p a=t-gets.to_i+1>>1,Math.sqrt(t-a*a)