fork download
  1. n,k=map(int,input().split())
  2. n-=k
  3. print(n//(k-1),n%(k-1))
Success #stdin #stdout 0.03s 9076KB
stdin
5 2
stdout
3 0