puts '?0 0?1 0!' STDOUT.flush t = gets.to_i u = gets.to_i a = (t - u + 1) / 2 b = Math.sqrt(t - a * a) puts a, b.to_i