import std.stdio, std.algorithm, std.string, std.string, std.conv; int readint() { return readln.chomp.to!int; } void main(){ int w = readint(), d = readint(); int ans = 0; while(w > 0 && d > 0) { ans = w / d^^2; d--; w -= ans; } writeln(ans); auto _ = readln(); }