#include <bits/stdc++.h>
using namespace std;
const int maxn = 5e2 + 100;
const int inf = ((1LL << 31) - 10);
int main() {
  int x, y;
  cin >> x >> y;
  int tmp = x / y;
  cout << (tmp + 1) * y << endl;
  return 0;
}
