#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  ll n, k;
  cin >> n >> k;
  ll ans = ((n + k - 1) / k) * k;
  if (ans == n) ans += k;
  cout << ans << '\n';
  return 0;
}
