#include <bits/stdc++.h> using namespace std; int a,b,n; bool c[1001]; int main() { cin>>a>>b; for(int i=1;i<=b;i++){ cin>>n; for(int j=n-1;j<=n+1;j++){ if(c[j]==0)c[j] = 1; else c[j] = 0; } } for(int i=1;i<=a;i++)cout<<c[i]<<" "; return 0; }