#include <bits/stdc++.h>
using namespace std;
template <class T1, class T2>
inline void gmax(T1& a, T2 b) {
  if (b > a) a = b;
}
template <class T1, class T2>
inline void gmin(T1& a, T2 b) {
  if (b < a) a = b;
}
const long long inf = 0x3f3f3f3f;
const long long maxn = 1e2 + 5;
void solve() {
  long long n, k;
  while (cin >> n >> k) {
    long long t = k - (n % k);
    cout << n + t << endl;
  }
}
int main() {
  solve();
  return 0;
}
