#include using namespace std; int main(){ int a, b; cin >> a >> b; a/=1000; int c = a/b; if(a/b==0) cout << 0; else cout << a/b*1000; }