#include using namespace std; int main() { int w, d; cin >> w, d; int day = d; int work; int ans; for(int i = 0; i < d; i++) { work = w / (day * day); if(i == d - 1) { ans = work; } else { w -= work; day--; } } cout << ans << endl; return 0; }