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