import strutils, sequtils, math let xy = stdin.readLine.split.map(parseFloat) r = pow(xy[0] ^ 2 + xy[1] ^ 2, 0.5) echo int(2 * r) + 1