#!/usr/bin/python3 from math import ceil x, y, r = map(int, input().split()) res = abs(x) + abs(y) + int(ceil(2 ** .5 * r)) print(res)