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