#include using namespace std; int n,x,y; int main(){ scanf("%d%d",&n,&x); for (int i=1;i<=n;i++){ scanf("%d",&y); if (y!=x){ printf("%d ",y); } } }