N,K=map(int,input().split()) x=0 f = (N-1)%(K+1)==0 while x