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