#include using namespace std; int main() { int A, B; cin >> A >> B; int x = A + B - (A % B); cout << x << endl; return 0; }