def main(): p, q = map(float, input().split()) first = (1 - p) * q second = p * q * (1 - q) ** 2 if second > first: print("YES") else: print("NO") if __name__ == "__main__": main()