#include <bits/stdc++.h>
using namespace std;
class ProblemAJohnyLikesNumbers {
 public:
  void solve(std::istream& in, std::ostream& out) {
    long long int n, k;
    in >> n >> k;
    ++n;
    int num = (n / k) + (n % k != 0);
    out << k * num;
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ProblemAJohnyLikesNumbers solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}
