p,q = map(float,raw_input().split()) print "YES" if 1-p < p*(1-q) else "NO"