import sys input=lambda: sys.stdin.readline().rstrip() p,q=map(float,input().split()) if (1-p)*q