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