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