n,x,*a=map(int,open(0).read().split()) print(len({i for y in a for i in range(y,y+30)if x>i-30>-1or 0>i>=x}))