x, y, r = io.read("*n", "*n", "*n") a = math.abs(x) + math.abs(y) + r * math.sqrt(2) ad = math.floor(a) + 1 io.write(ad)