import std.stdio, std.conv, std.string, std.range, std.math, std.algorithm; void main() { auto input = readln.split.to!(real[]); auto p = input[0], q = input[1]; auto P1 = (1 - p) * q; auto P2 = p * (1 - q) * q; (P1 < P2 ? "YES" : "NO").writeln; }