p, q = map(int, input().split()) p1 = (1 - p) * q p2 = p * (1 - q) if p1 < p2: print("YES") else: print("NO")