($p,$q)=<>;print 1<$p*(2-$q)?YES:NO;