# -*- coding: utf-8 -*- p, q = map(float, raw_input().split()) t = (1.0 - p) - p * (1.0 - q) if t < 0: print "YES" else: print "NO"