#include #include int main() { int x,y; int d; double distance; scanf("%d %d",&x,&y); //原点から(x,y)の距離を計算 distance = sqrt(x*x + y*y); printf("%d",(int)distance); return 0; }