Score : $200$ points
Given are an integer sequence $A$ of length $N$, and an integer $X$.
Remove all elements that are equal to $X$ from $A$, and arrange the remaining elements without changing the order to obtain the sequence $A'$. Print $A'$.
Input is given from Standard Input in the following format:
$N$ $X$ $A_1$ $A_2$ $A_3$ $\dots$ $A_N$
Print the elements of $A'$ in order, with space in between.
5 5 3 5 6 5 4
3 6 4
Removing $5$s from $[3, 5, 6, 5, 4]$ results in $[3, 6, 4]$.
3 3 3 3 3
$A'$ can be a sequence with zero elements, in which case we should just print an empty line.