{"raw_statement":[{"iden":"statement","content":"如图所示的螺旋折线经过平面上所有整点恰好一次。\n\n![](https://cdn.luogu.com.cn/upload/image_hosting/yis43t6j.png)\n\n对于整点 $(X, Y)$，我们定义它到原点的距离 $\\text{dis}(X, Y)$ 是从原点到 $(X, Y)$ 的螺旋折线段的长度。  \n\n例如 $\\text{dis}(0, 1)=3$，$\\text{dis}(-2, -1)=9$。 \n\n给出整点坐标 $(X, Y)$，你能计算出 $\\text{dis}(X, Y)$ 吗？\n"},{"iden":"input","content":"$X$ 和 $Y$。\n\n"},{"iden":"output","content":"输出 $\\text{dis}(X, Y)$"},{"iden":"note","content":"对于 $40\\%$的数据，$-1000\\le X,Y\\le 1000$。\n\n对于 $70\\%$ 的数据，$-10^5\\le X,Y \\le 10^5$。\n\n对于 $100\\%$ 的数据，$-10^9\\le X,Y \\le 10^9$。\n"}],"translated_statement":null,"sample_group":[["0 1","3"]],"show_order":[],"formal_statement":null,"simple_statement":null,"has_page_source":false}