#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K; cin>>N>>K; N-=K; ll ans=0; for(ll i=1;i*i<=N;i++){ if(N%i==0){ if(i>K)ans+=1; if(N/i>K&&i*i!=N)ans+=1; } } cout<