#include<bits/stdc++.h> using namespace std; long long n,k; int main(){ cin>>n>>k; cout<<floor(sqrt(n*1.0/k-0.5+0.5/k)); return 0; }