import std.algorithm; import std.array; import std.conv; import std.math; import std.stdio; import std.string; void main() { auto xs = readln.split.map!(to!int); if (xs[1] % abs(xs[0]) == 0) writeln(xs[1] / xs[0]); else writeln("NO"); }