n, x = input().split()
print(' '.join([e for e in input().split() if e != x]))