#include #include using namespace std; int main(void){ int a = 0, w, d; cin >> w >> d; while (d){ w -= a; a = w / pow(d, 2); d--; } cout << a << endl; return 0; }