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