#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, la, lb, x;
  cin >> n >> la >> lb;
  int apple[100];
  for (int i = 1; i <= n; i++) apple[i] = 2;
  for (int i = 1; i <= la; i++) {
    cin >> x;
    apple[x] = 1;
  }
  for (int i = 1; i <= lb; i++) {
    cin >> x;
    if (apple[x] != 1) apple[x] = 2;
  }
  for (int i = 1; i <= n; i++) cout << apple[i] << " ";
  return 0;
}
