#include using namespace std; int main() { int w,d,p; cin >> w >> d; p = 0; for (int i = d; i > 0; i--) { p = w / (i * i); w = w - p; } cout << p; }