a = [int(s) for s in input().split()]
b = a[0] - a[1] + 1
c = a[0] // a[1]
print(int(b - c)) int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s a = [int(s) for s in input().split()] a [int(s) for s in input().split()] b = a[0] - a[1] + 1 b a[0] - a[1] + 1 a[0] - a[1] a[0] a 0 a[1] a 1 1 c = a[0] // a[1] c a[0] // a[1] a[0] a 0 a[1] a 1 print(int(b - c)) print int(b - c) int b - c b c a = [int(s) for s in input().split()] [int(s) for s in input().split()] a b = a[0] - a[1] + 1 a[0] - a[1] + 1 b c = a[0] // a[1] a[0] // a[1] c
a = [int(s) for s in input().split()]
b = a[0] - a[1] + 1
c = a[0] // a[1]
print(int(b - c))