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