#include<bits/stdc++.h>
using namespace std;
int main(){
int n,x,b;
cin>>n>>x;
b=(n*1000+x-1)/x;
cout<<b;
}
/**************************************************************
Problem: 1309
User: xuezihong1
Language: C++
Result: Accepted
Time:12 ms
Memory:2072 kb
****************************************************************/