#include using namespace std; int main() { int x, y, r; cin >> x >> y >> r; int ans = abs( x ) + abs( y ); int rr = r * cos( M_PI / 4 ) * 2; ans += rr + 1; cout << ans << endl; }