#include using namespace std; int main(){ int n,k; cin>>n>>k; if(k>n||k==0){cout<<0<