a;main(b){a=scanf("%d%d",&a,&b)>printf("%f",a-b?sqrt(abs(a*a-b*b)):hypot(a,b));}