P, Q = map(float, input().split()) P1 = (1-P) * Q P2 = P * (1-Q) * Q print('YES' if P1 < P2 else 'NO')