import math, sequtils, strutils let x: seq[float] = stdin.readline.split.map(parseFloat) ans: int = (2 * hypot(x[0], x[1])).int + 1 echo ans