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