#abc191b. [abc191_b]Remove It
[abc191_b]Remove It
Problem Statement
Given are an integer sequence of length , and an integer .
Remove all elements that are equal to from , and arrange the remaining elements without changing the order to obtain the sequence . Print .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the elements of in order, with space in between.
Sample Input 1
5 5
3 5 6 5 4
Sample Output 1
3 6 4
Removing s from \[3, 5, 6, 5, 4\] results in \[3, 6, 4\].
Sample Input 2
3 3
3 3 3
Sample Output 2
can be a sequence with zero elements, in which case we should just print an empty line.