#include <bits/stdc++.h>
using namespace std;
const int nax = 1000 * 1007;
int main() {
  ios_base::sync_with_stdio(false);
  long long n, m;
  cin >> n >> m;
  cout << n + (m - (n % m));
  return 0;
}
