ss = input().split() x = int(ss[0]) y = int(ss[1]) r = int(ss[2]) if x < 0: x *= -1 if y < 0: y *= -1 a = int(x + y + (r * 1.41421356) + 1) print(a)