#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, k;
  cin >> n >> k;
  int special = 1;
  x = 0;
  while (x <= n) {
    x = k * special;
    special++;
  }
  cout << x;
  return 0;
}
