#include int main(){ int N,K; scanf("%d %d",&N,&K); printf("%d",N/(K*1000)); return 0; }