#include <bits/stdc++.h>
using namespace std;
const int inf = 1000000000;
const long long INF = 1LL * inf * inf;
const double eps = 1e-9;
const int MAXN = 2500;
const int md = (int)1e9;
const double EPS = 1e-5;
const long long maxll = numeric_limits<long long>::max();
template <typename name>
inline name sqr(name x) {
  return x * x;
}
template <typename name>
inline name bpow(name base, int exp, long long md = maxll) {
  if (exp == 0) return 1;
  if (exp % 2 == 1)
    return (base * bpow(base, exp - 1, md)) % md;
  else {
    name k = bpow(base, exp / 2, md);
    return (k * k) % md;
  }
}
long long n, k, l, r;
int main() {
  scanf(
      "%lld"
      "%lld",
      &n, &k);
  l = 0;
  r = 2 * inf;
  while (r - l > 1) {
    long long d = (l + r) / 2;
    if (k * d > n)
      r = d;
    else
      l = d;
  }
  if (k * l > n)
    cout << k * l;
  else
    cout << k * r;
  return 0;
}
