#include <bits/stdc++.h>
int main() {
  int n, k;
  while (~scanf("%d%d", &n, &k)) {
    int ans = n % k;
    if (ans == 0)
      printf("%d\n", n + k);
    else
      printf("%d\n", n - ans + k);
  }
  return 0;
}
