import std.stdio; import std.conv; import std.string; import std.algorithm; import std.array; import std.range; void solve(T)(T h, T w, T n, T k){ auto last = h * w - 1; // to 0index k -= 1; // to 0index writeln( ((last % n) == k) ? "YES" : "NO" ); writeln("%d %d %d %d".format(n, k, last, last%n)); } void main(){ auto buf = readln.strip.split(" ").map!(to!long); solve(buf[0], buf[1], buf[2], buf[3]); }