X, Y = map(float, input().split()) print(X*(1-Y), X*(1-Y))