import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines p,q = map(float, read().split()) P1 = (1-p) * q P2 = p * (1-q) * q answer = 'YES' if P1 < P2 else 'NO' print(answer)