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