#coding: utf-8 ##yuki_172 import math s=map(int,raw_input().split()) x=s[0] y=s[1] r=s[2] res=int(abs(x)+abs(y)+r*math.sqrt(2)+1.0) print res