#define _USE_MATH_DEFINES #include using namespace std; //template #define rep(i,a,b) for(int i=(a);i<(b);i++) #define rrep(i,a,b) for(int i=(a);i>(b);i--) #define ALL(v) (v).begin(),(v).end() typedef long long int ll; const int inf = 0x3fffffff; const ll INF = 0x3fffffffffffffff; template inline bool chmax(T& a,T b){ if(a inline bool chmin(T& a,T b){ if(a>b){a=b;return 1;}return 0; } //template end int merge(int a,int b){return a*b+a+b;} bool ans[500010]={}; int main(){ int n,x; scanf("%d%d",&n,&x); vector a(n); rep(i,0,n)scanf("%d",&a[i]); if(n==1){ string s; rep(i,1,x+1)if(i==a[0])s+='1'; else s+='0'; cout< val; rep(i,0,n)val.insert(a[i]); rep(i,0,n)rep(j,i+1,n){ int add=merge(a[i],a[j]); while(add<=x){val.insert(add); add+=a[i];} add=merge(a[i],a[j]); while(add<=x){val.insert(add); add+=a[j];} } for(int add:val){ int idx=base; while(idx<=x){ans[idx]=1; idx+=add;} } string s; rep(i,1,x+1)if(ans[i])s+='1'; else s+='0'; cout<