#include int main() { int N,K; scanf("%d %d",&N,&K); printf("%d",N-N%K); return 0; }