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