#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  scanf("%lld%lld", &n, &k);
  long long l = 0LL, d = 2000000001LL, mid, ans = 0LL;
  while (l <= d) {
    mid = (l + d) / 2;
    if (k * mid > n) {
      ans = mid;
      d = mid - 1;
    } else
      l = mid + 1;
  }
  printf("%lld\n", k * ans);
  return 0;
}
