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