#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <stack>
#include <algorithm>
#include <string>
#include <map>
#include <iterator>
#include <set>
#include <queue>
#include <bitset>
#include <cassert>

using namespace std;


int main() {


    int x, y, r;
    cin >> x >> y >> r;

    x = abs(x);
    y = abs(y);

    cout << (x + y + (int)(sqrt(2) * r) + 1) << endl;

}