#include #include #include #include #include #include #include #include #define REP(i,k,n) for(int i=k;i P; int main() { ll n,m; cin >> n >> m; ll ans = n / (m*1000); cout << ans*1000 << endl; return 0; }