pos = gets.split(" ").map {|i| i.to_i*2} p (Math.hypot(pos[0], pos[1])+1).to_i