while 1: try: x,y=map(float,input().split()) except: break p=x*(1-y) print("{0:.9f} {0:.9f}".format(p))