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