#include int main(void){ unsigned long long int n,m; scanf("%llu%llu",&n,&m); n/=1000; n/=m; n*=1000; printf("%llu\n",n); return 0; }