#include int main() { double x,y; scanf("%lf %lf",&x,&y); printf("%f %f\n",x*(1.0-y),x*(1.0-y)); return 0; }