#include "bits/stdc++.h" using namespace std; int main() { int x, y, r; cin >> x >> y >> r; double ans = sqrt(2) * (sqrt(x * x + y * y) + r); int intans = (int)(ans + 1 - 1e-9); cout << intans << endl; }