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