#coding: UTF-8 import sys import re import itertools from math import sqrt from collections import deque ### defs ### ### main ### x,y,r = map(int,sys.stdin.readline().split()) if (x<0): x = -x if (y<0): y = -y print(int(x+y+sqrt(2)*r)+1)