#include #include using namespace std; //マンハッタン距離ってなんやねーんってなって時間とかした //もっとよく考えたい int main(void) { int x, y, r,ans; cin >> x >> y >> r; ans = ceil(abs(x) + abs(y) + sqrt(2)*r); cout << ans; return 0; }