#include using namespace std; int main(){ long n,m=0,k; cin >> n >> k; if(k==0 || k>n) cout << 0 << "\n"; else{ for(int i=0;i