# No.159 刺さらないUSB p, q = [float(i) for i in input().split()] P1 = (1- p) * q P2 = p * (1 - q) * q print('YES' if P1 < P2 else 'NO')