#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)s; i < (int)e; i++) int main() { cin.tie(nullptr); ll W, D; cin >> W >> D; ll ans; while (D > 0) { ans = W / (D * D); W -= ans; D--; } cout << ans << '\n'; }