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