#include <bits/stdc++.h>
using namespace std;
int fx[] = {+0, +0, +1, -1, -1, +1, -1, +1};
int fy[] = {-1, +1, +0, +0, +1, +1, -1, -1};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, k;
  cin >> n >> k;
  if (n < k) {
    cout << k << "\n";
    return 0;
  } else {
    int diff = n - k;
    int remain = diff % k;
    int extract = k - remain;
    cout << n + extract;
  }
  return 0;
}
