x,y=map(float,input().split()) ans=x*(1-y) print(ans,ans)