#include <bits/stdc++.h>
using namespace std;
long long bs(long long n, long long k) {
  long long l = 1, r = 2000000000;
  while (l < r) {
    long long mid = (l + r) / 2;
    if (k * mid > n)
      r = mid;
    else
      l = mid + 1;
  }
  return k * l;
}
long long n, k;
int main() {
  cin >> n >> k;
  cout << bs(n, k);
  return 0;
}
