#include int main() { int x, y, r; std::cin >> x >> y >> r; std::cout << int(1+abs(x)+abs(y)+sqrt(2)*r) << std::endl; return 0; }