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