#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int a, b;
  bool mark[200];
  for (int i = 0; i < 150; i++) mark[i] = 0;
  int n, a1, b1;
  cin >> n >> a1 >> b1;
  while (a1--) {
    cin >> a;
    mark[a] = true;
  }
  while (b1--) cin >> b;
  for (int i = 1; i <= n; i++) {
    if (mark[i])
      cout << 1 << " ";
    else
      cout << 2 << " ";
  }
  cout << endl;
  return 0;
}
