#include <iostream>
#include <cmath>
using namespace std;
int main(){
	int x, y, r;
	cin >> x >> y >> r;
	cout << 1 + (int) (abs(x) + abs(y) + r * sqrt(2)) << endl;
}