p,q=map(float,input().split()) print('YNEOS'[(1-p)*q>=p*(1-q)*q::2])