#include using namespace std; int main() { long long int N; int M; int i=0; cin>>N>>M; N/=1000; while(N>=M){ N-=M; i++; } cout<