import math x, y, r = map(int, input().split(' ')) R = int(abs(x) + abs(y) + math.sqrt(2 * r**2) + 1) print(R)