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