x;main(a,b){for(;~scanf("%d%d",&a,&b);printf("%d %d\n",x,a-x))x=(a-sqrt(a*a-4*b))/2;}