#include int main(){ int x,y,r; scanf("%d%d%d",&x,&y,&r); if(x<0)x*=-1; if(y<0)y*=-1; printf("%d",(int)(x+y+r*1.41421356+1)); return 0; }