#include <bits/stdc++.h>
int main() {
  int num1, num2, ans, add;
  while (scanf("%d%d", &num1, &num2) == 2) {
    add = 1;
    if (num1 < num2) {
      printf("%d\n", num2);
    } else {
      ans = num1 / num2;
      if (ans * num2 <= num1) printf("%d\n", ans * num2 + num2);
    }
  }
  return 0;
}
