#include <bits/stdc++.h>
using namespace std;
int main() {
  setlocale(LC_ALL, "TURKISH");
  long long int n, a, b, kala = 0, kalb = 0;
  cin >> n >> a >> b;
  vector<long long int> va(a);
  vector<long long int> vb(b);
  for (long long int i = 0; i < a; i++) {
    cin >> va[i];
  }
  for (long long int i = 0; i < b; i++) {
    cin >> vb[i];
  }
  sort(va.begin(), va.end());
  for (long long int i = 1; i <= n; i++) {
    if (i == va[kala]) {
      cout << 1 << " ";
      kala++;
    } else {
      cout << 2 << " ";
    }
  }
  return 0;
}
