#include using namespace std; typedef long long ll; int main(){ ll w,d; cin>>w>>d; int ans=0; for(int n=d; n>0; n--){ ans=w/(n*n); w-=ans; } cout<