P, Q = map(float, input().split()) p1 = (1-P)*Q p2 = P*(1-Q)*Q if p1 < p2: print("YES") else: print("NO")