N, K = map(int, input().split())

data_dict = {}

for k in range(K):
    data_dict[k] = 0

for n in range(N):
    if n in data_dict:
        if data_dict[n] == 0:
            data_dict[n] = 1
    else:
        data_dict[0] += 1

print(data_dict[0] - data_dict[K - 1]) N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K data_dict = {} data_dict {} for k in range(K):
    data_dict[k] = 0 k range(K) range K data_dict[k] = 0 data_dict[k] data_dict k 0 for n in range(N):
    if n in data_dict:
        if data_dict[n] == 0:
            data_dict[n] = 1
    else:
        data_dict[0] += 1 n range(N) range N if n in data_dict:
        if data_dict[n] == 0:
            data_dict[n] = 1
    else:
        data_dict[0] += 1 n in data_dict n data_dict if data_dict[n] == 0:
            data_dict[n] = 1
     data_dict[n] == 0 data_dict[n] data_dict n 0 data_dict[n] = 1 data_dict[n] data_dict n 1 data_dict[0] += 1 data_dict[0] data_dict 0 1 print(data_dict[0] - data_dict[K - 1]) print data_dict[0] - data_dict[K - 1] data_dict[0] data_dict 0 data_dict[K - 1] data_dict K - 1 K 1 K = map(int, input().split()) map(int, input().split()) K data_dict = {} {} data_dict N, K = map(int, input().split()) map(int, input().split()) N
N, K = map(int, input().split())

data_dict = {}

for k in range(K):
    data_dict[k] = 0

for n in range(N):
    if n in data_dict:
        if data_dict[n] == 0:
            data_dict[n] = 1
    else:
        data_dict[0] += 1

print(data_dict[0] - data_dict[K - 1])