#include using namespace std; int a,b,n,k,i; int main() { cin>>n>>a; while(n--) { cin>>k; if( k != a ) cout<