# yukicoder No.159 刺さらないUSB p, q = map(float, input().split()) P_1 = (1 - p) * q P_2 = p * q * (1 - q) print("YES" if P_2 > P_1 else "NO")