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