n,m=map(int,input().split()) a=n//m b=n+a print(b)
------Input------ 159 16 ------Answer----- 169 ------Your output----- 168