#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); int x, y, r; cin >> x >> y >> r; double res = (sqrt(x * x + y * y) + r) * sqrt(2); int ans = res + 1; cout << ans << endl; return 0; }