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