#include<bits/stdc++.h> using namespace std; int main(){ int n,k,c,d=0; cin>>n>>k; for(int i=n+1; ;i++){ if(i%k==0){ cout<<i; break; } } return 0; }