#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  int apples[101] = {1};
  for (int i = 0; i < a; i++) {
    int in;
    cin >> in;
    apples[in] = 1;
  }
  for (int i = 0; i < b; i++) {
    int in;
    cin >> in;
    apples[in] = 2;
  }
  for (int i = 1; i <= n; i++) {
    cout << apples[i] << " ";
  }
  return 0;
}
