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