#include using namespace std; int main(){ int W,D; cin>>W>>D; for(int i=D;i>1;i--){ W=W-W/(i*i); } cout<