#include <bits/stdc++.h>
using namespace std;
int to[110];
int main() {
  int n, a, b;
  int x;
  cin >> n >> a >> b;
  for (int i = 0; i < a; i++) {
    cin >> x;
    to[x] = 1;
  }
  for (int i = 0; i < b; i++) cin >> x;
  for (int i = 1; i <= n; i++)
    if (to[i])
      cout << 1 << " ";
    else
      cout << 2 << " ";
  cout << endl;
}
