var n,x,i,m:integer; begin read(n,x); for i:=1 to n do begin read(m); If m<>x then write(m,' '); end; end.