#include using namespace std; int main() { long int N, M; cin >> N >> M; cout << 1000 * (N / (1000 * M)) << endl; return 0; }