#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); int n,m,hoge=0,ans=0;cin>>n>>m; //Yasuoは、予算が N 円あり、親戚の子供 M 人にお年玉をあげたいと思っている。 //お年玉は1000円紙幣だけにして、全員に平等(すべて同じ金額)でかつ //最大の金額をあげたい while(hoge<=n){ hoge+=1000*m; ans+=1000; } cout<