from math import fabs
x,y,r=map(int,input().split())
print(int(fabs(x)+fabs(y)+2**(1/2)*r+1))