#include<bits/stdc++.h> using namespace std; int main() { int n,k; cin>>n>>k; int s=0; s=(n/k)*k; cout<<s; return 0; }