N,K = map(int,input().split())
print((N-K+1) - (N//K)) N,K = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split K print((N-K+1) - (N//K)) print (N-K+1) - (N//K) N-K+1 N-K N K 1 N//K N K K = map(int,input().split()) map(int,input().split()) K N,K = map(int,input().split()) map(int,input().split()) N
N,K = map(int,input().split())
print((N-K+1) - (N//K))
