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