EPS=0.00000000000001 x,y=gets.split.map(&:to_i) d=((x*x+y*y)**0.5)*2+EPS p [d.ceil,1].max