#!/usr/bin/env python3

n,k = list(map(int,input().split()))

print((n-k+1))
n,k = list(map(int,input().split()))

print((max(0,n-k+1)))
#!/usr/bin/env python3
n, k = list(map(int, input().split()))
print((n - k + 1))

n, k = list(map(int, input().split()))
print((max(0, n - k + 1)))

-#!/usr/bin/env python3 -print((n - k + 1)) +print((max(0, n - k + 1)))