# -*- coding: utf-8 -*- import sys p, q = map(float, raw_input().split()) assert 0 <= p <= 1 assert 0.1 <= q <= 1 P0 = p * q P1 = (1 - p) * q P2 = p * (1 - q) * q assert 0.00001 <= abs(P1 - P2) sys.stderr.write(str(P1) + "\n") sys.stderr.write(str(P2) + "\n") if P1 < P2: print "YES" else: print "NO"