Problem Description

Array se value x ko jitni baar bhi aayi hai, sab hata do. Baaki order same rehna chahiye. Print new length and new array.

Input Format

Line1: n x. Line2: n integers.

Output Format

Line1: newLength. Line2: updated array (or empty).

Sample Test Case

Input:
6 2 1 2 2 3 4 2
Output:
3 1 3 4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next