#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n, a, b, c = 0;
  cin >> n >> a >> b;
  long long s1[a];
  for (long long x = 0; x < a; x++) {
    cin >> s1[x];
  }
  sort(s1, s1 + a);
  for (long long x = 1; x <= n; x++) {
    if (s1[c] == x) {
      cout << 1 << " ";
      c++;
    } else {
      cout << 2 << " ";
    }
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  solve();
  return 0;
}
