#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a, b, t;
  int s[110];
  cin >> n >> a >> b;
  while (a--) {
    scanf("%d", &t);
    s[t] = 1;
  }
  while (b--) {
    scanf("%d", &t);
    s[t] = 2;
  }
  for (int i = 1; i <= n; i++) {
    cout << s[i] << " ";
  }
  return 0;
}
