#include <bits/stdc++.h> using namespace std; int main(){ int n,d; cin>>n>>d; cout<<n-n%d; return 0; }