#include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef pair P; int main(){ int w,d; cin >> w >> d; int ans = 0; for(int t = d;t >= 1;t--){ if(t == 1)ans = w / (t * t); w -= w / (t * t); } cout << ans << endl; return 0; }