#include using namespace std; #define FOR(i,a,b) for(int i = (a); i < (b); i++) int main() { cin.sync_with_stdio(0); int n, e, b; cin >> n >> e >> b; string res(n, '0'); set dont; stack schtack; FOR(i,0,b) { int x; cin >> x; x--; dont.insert(x); schtack.push(x-1); } while(e) { int idx = schtack.top(); schtack.pop(); if(idx == 0) { if(e % 2) { res[idx] = '1'; e--; } continue; } if(dont.count(idx)) { continue; } if(res[idx+1] == '0' && e > 1) { res[idx] = '1'; e -= 2; } schtack.push(idx-1); } cout << res << endl; }