#CCBCHBAHAI0000042. Xóa tất cả phần tử bằng x (Remove All Occurrences of x)

Xóa tất cả phần tử bằng x (Remove All Occurrences of x)

Xóa tất cả phần tử bằng x (Remove All Occurrences of x)

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem

Given an integer array a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1} and an integer xx.

Remove all elements equal to xx while preserving the relative order of every remaining element.

Define

I={i∣0≤i<n, ai≠x}.I=\{i\mid 0\le i<n,\ a_i\ne x\}.

Suppose

$$I=\{i_0,i_1,\ldots,i_{m-1}\},\qquad i_0<i_1<\cdots<i_{m-1}.$$

The result bb has length m=∣I∣m=|I| and

bj=aij,0≤j<m.b_j=a_{i_j},\qquad 0\le j<m.

Print the logical size mm and the array bb.

Input

The first line contains integers nn and xx. The second line contains exactly nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1}.

Output

Print mm on the first line. If m>0m>0, print b0,b1,…,bm−1b_0,b_1,\ldots,b_{m-1} on the second line.

Subtask

Subtask 1 (100 points): 1≤n≤2⋅1051\le n\le2\cdot10^5; ∣x∣≤109|x|\le10^9; ∣ai∣≤109|a_i|\le10^9.

Example

Input

8 3
3 1 3 2 3 4 3 5

Output

4
1 2 4 5

Explanation

The indices whose values are not 33 are 1,3,5,71,3,5,7, so the result in the original relative order is [1,2,4,5][1,2,4,5] with size 44.