import math x, y, r = map(int, raw_input().split()) m = abs(x) + abs(y) ufo = r * math.sqrt(2) print int(math.ceil(m + ufo))