# -*- coding: utf-8 -*- """ No.159 刺さらないUSB https://yukicoder.me/problems/no/159 """ import sys from sys import stdin input = stdin.readline def main(args): p, q = map(float, input().split()) p1 = (1 - p) * 1 * q p2 = p * (1 - q) * 1 * q if p1 < p2: print('YES') else: print('NO') if __name__ == '__main__': main(sys.argv[1:])