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