#include int main() { int L,K,a; scanf("%d",&L); scanf("%d",&K); a=L/K+K; printf("%d",a); return 0; }