#!/usr/bin/env python3 #fileencoding: utf-8 p, q = [float(i) for i in input().strip().split(" ")] P1 = (1-p) P2 = p * (1-q) print("YES" if P1 < P2 else "NO")