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