p, q = map(float,input().split()) if (1-q)*p*q - (1-p)*q > 0: print('YES') else: print('NO')