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