#include using namespace std; int main(){ int n,x; while (cin >> n >>x && (n!=0||x!=0)){ int *i = new int[n]; int *hea = i; for(int j=0;j> i[j]; int j=0; for(;j x){ cout << x << ' '; break; } cout << i[j] << ' '; } if(j==n){ cout << x << endl; } else for(;j