program given; var n,x,i,c:integer; begin readln(n,x); for i:=1 to n do begin read(c); if c<>x then write(c,' '); end; end.