#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x;
cin>>n>>x;
if(n*1000%x!=0){
cout<<n*1000/x+1;
}else{
cout<<n*1000/x;
}
}
/**************************************************************
Problem: 1309
User: linzihang
Language: C++
Result: Accepted
Time:11 ms
Memory:2072 kb
****************************************************************/