input_list = list(map(float,input().split())) p, q = input_list p1 = (1 - p) * q p2 = p * (1 - q) * q if p1 < p2: print('YES') else: print('NO')