n,k=map(int,input().split()) add=n//k total=n+add print(total)
------Input------ 159 16 ------Answer----- 169 ------Your output----- 168