#include using namespace std; int main(){ int a, b; cin >> a >> b; int c = a/1000; cout << c/b << "000"; }