import math def main(): x, y, r = (map(int, input().split())) print(math.ceil(abs(x) + abs(y) + r * (2 ** 0.5))) if __name__ == "__main__": main()