Dr. Evil kidnapped Mahmoud and Ehab in the evil land because of their performance in the Evil Olympiad in Informatics (EOI). He decided to give them some problems to let them go.

Dr. Evil is interested in sets, He has a set of n integers. Dr. Evil calls a set of integers evil if the MEX of it is exactly x. the MEX of a set of integers is the minimum non-negative integer that doesn't exist in it. For example, the MEX of the set {0, 2, 4} is 1 and the MEX of the set {1, 2, 3} is 0 .

Dr. Evil is going to make his set evil. To do this he can perform some operations. During each operation he can add some non-negative integer to his set or erase some element from it. What is the minimal number of operations Dr. Evil has to perform to make his set evil?


-----Input-----

The first line contains two integers n and x (1 ≤ n ≤ 100, 0 ≤ x ≤ 100) — the size of the set Dr. Evil owns, and the desired MEX.

The second line contains n distinct non-negative integers not exceeding 100 that represent the set.


-----Output-----

The only line should contain one integer — the minimal number of operations Dr. Evil should perform.


-----Examples-----
Input
5 3
0 4 5 6 7

Output
2

Input
1 0
0

Output
1

Input
5 0
1 2 3 4 5

Output
0



-----Note-----

For the first test case Dr. Evil should add 1 and 2 to the set performing 2 operations.

For the second test case Dr. Evil should erase 0 from the set. After that, the set becomes empty, so the MEX of it is 0.

In the third test case the set is already evil.

Difficulty: interview

Starter code:

Solutions:
R=lambda:list(map(int,input().split()))
n,x=R()
a=R()
print(x-len([i for i in a if i<x])+(1 if x in a else 0))


n, x = list(map(int, input().split()))
a = list(map(int, input().split()))
ans = x
for i in range(n):
    if a[i] < x:
        ans -= 1
    if a[i] == x:
        ans += 1
print(ans)


n, x = list(map(int, input().split()))
a = list(map(int, input().split()))
b = sum(i < x for i in a)
print(x - b + (x in a))


n, x = list(map(int, input().split()))
a = set(map(int, input().split()))

ans = 0
for i in range(x):
	if i not in a:
		ans += 1

if x in a:
	ans += 1

print(ans)


n,x=list(map(int,input().split()))
ip=list(map(int,input().split()))
count=0
for i in range(x):
    if i not in ip:
        ip.append(i)
        count+=1
    else:
        continue
if x not in ip:
    print(count)
else:
    print(count+1)


n, x = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
ans = 0
for i in range(x):
    if not i in a:
        ans += 1
if x in a:
    ans += 1
print(ans)

n, x = map(int, input().split())

l = [1] * 101

for v in map(int, input().split()):
	l[v] = 0

ans = int(not l[x])

for i in range(x):
	ans += l[i]

print(ans)

n,x = map(int,input().split())

A = set(map(int,input().split()))

cnt = (x in A) + sum(i not in A for i in range(x))
print(cnt)

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

a = set(map(int, input().split()))
result = 0
for i in range(x):
    if i not in a:
        result += 1

if x in a:
    result += 1

print(result)


n, x = map(int, input().split())
A = list(map(int, input().split()))
c = 0
ans = 0
for i in A:
    if i < x:
        c+=1
    if i == x:
        ans+=1
ans += x - c
print(ans)

n,x = map(int, input().split())
a=set(list(map(int, input().split())))
ans = 0
for i in range(x):
     if i not in a:
            ans += 1
if x in a:
    ans += 1
print(ans)

n, x = map(int, input().split())
xs = [int(i) for i in input().split()]
smaller_than_x = [p for p in xs if p < x]
print(x - len(smaller_than_x) + int(x in xs))

n, x = map(int, input().split())
arr = list(map(int, input().split()))
ans = sum((i < x) for i in arr)
ans = x - ans
if x in list(arr):
	ans += 1
print(ans)



def main():
    n, x = list(map(int, input().split()))
    s = set(map(int, input().split()))
    res = 0
    for i in range(x):
        if i not in s:
            res+=1
    if x in s:
        res+=1
    print(res)

def __starting_point():
    main()

__starting_point()

n, x = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
b = [1] * 101
for i in a:
    b[i] = 0
c = sum(b[:x])
if x in a:
    c += 1
print(c)


n, x  = map(int, input().split())
data = list(map(int, input().split()))
k = 0
for i in range(x):
    if i not in data:
        k += 1
if x in data:
    k += 1
print(k)

#!/usr/bin/env python3

N, X = list(map(int, input().split()))
A = set(map(int, input().split()))

out = X - sum(1 for n in A if n < X)
if X in A:
    out += 1

print(out)



#python3

numbers_nr, evil_value = (int(x) for x in input().split())
numbers = [int(x) for x in input().split()]

ans = 0
if evil_value in numbers:
    ans += 1
for value in range(0, evil_value):
    if value not in numbers:
        ans += 1

print(ans)


n, x = [int(i) for i in input().split()]
a = [int(i) for i in input().split()]
a.sort()
ans = 0
if x in a:
    ans += 1
for i in range(x):
    if not (i in a):
        ans += 1
print(ans)

#!/usr/bin/env python3
from sys import stdin, stdout

def rint():
    return list(map(int, stdin.readline().split()))
#lines = stdin.readlines()

n, x = rint()
a = list(rint())

a.sort()
b = [0 for i in range(101)]

for aa in a:
    b[aa] = 1

cnt = 0
for i in range(x):
    if b[i] == 0:
        cnt += 1
if b[x] == 1:
    cnt += 1

print(cnt)


import sys
from collections import Counter
sys.setrecursionlimit(10**6)
n,x=list(map(int,input().split()))
a=list(map(int,input().split()))
b=x

a.sort()
i=0
while i<len(a) and a[i]<=x:
    if a[i]==x:
        b=b+1
    else:
        b=b-1
    i=i+1
print(b)


def readln(): return list(map(int, input().rstrip().split()))


n, x = readln()
data = list(readln())
data.sort()
count = 0
pad = 0
for i in data:
    if i < x:
        count += 1
    if i == x:
        pad = 1
print(x + pad - count)


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

lst = []
for y in input().split():
    lst.append(int(y))
lst.sort()

k = 0
for y in range(0, x):
    if not y in lst:
        k += 1

if x in lst:
    print(k + 1)
else:
    print(k)


_ , X = [int(x) for x in input().split()]
s = [int(x) for x in input().split()]

o = len(s)
s = [x for x in s if x >= 0]

acc = o - len(s)

if X in s: acc += 1
s = [x for x in s if x < X]

acc += X - len(s)

print(acc)


n,k=map(int,input().split())
l=list(map(int,input().split()))
ans=0
l.sort()
for i in range(n):
    if l[i]<k:
        ans+=1
print(k-ans+int(k in l))