#include using namespace std; typedef long long ll; int main() { double x, y, r; cin >> x >> y >> r; x = abs(x); y = abs(y); // double large = max(x, y); // double small = min(x, y); // int term = ceil(large + 0.5 * r); int ans = ceil(x + y + 1.4142 * r); cout << ans << endl; }