#include <bits/stdc++.h>
const double PI = acos(-0);
const int mod = 1000007;
const int maxn = 1e5 + 10;
const int inf = 0x3f3f3f3f;
const int NEXT[][2] = {{-1, 0}, {1, 0}, {0, -1}, {0, 1}};
using namespace std;
int main() {
  int n, k;
  scanf("%d%d", &n, &k);
  printf("%d\n", k * (n / k + 1));
  return 0;
}
