#include int main(void){ int a,b,ans; scanf("%d %d",&a,&b); ans=a+b-1/b; printf("%d\n",ans); return 0; }