#include <bits/stdc++.h>
using namespace std;
template <class X, class Y>
void minimize(X &x, const Y &y) {
  if (x > y) x = y;
}
template <class X, class Y>
void maximize(X &x, const Y &y) {
  if (x < y) x = y;
}
template <class T>
T Abs(const T &x) {
  return (x < 0 ? -x : x);
}
int main(void) {
  long long n, k;
  cin >> n >> k;
  if (n % k == 0)
    cout << n + k << endl;
  else
    cout << n + k - n % k << endl;
  return 0;
}
