#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, rslt;
  cin >> n >> k;
  rslt = n;
  while (rslt <= n) {
    if (n % k)
      rslt += k - n % k;
    else
      rslt += k;
  }
  cout << rslt;
  return 0;
}
