import sequtils,strutils,math proc hypot(x1,y1,x2,y2 : float64): float64= var x = abs(x1 - x2) y = y1 - y2 return x * sqrt(1 + pow(y / x, 2)) var x,y : float64 (x,y) = stdin.readline.split.map(parsefloat) echo floor(hypot(0,0,x,y) * 2).int + 1