#include <bits/stdc++.h>
int main(void) {
  int n, p, q;
  std::cin >> n >> p >> q;
  int app[n];
  for (int i = 0; i < n; i++) {
    app[i] = 2;
  }
  for (int i = 0; i < p; i++) {
    int t;
    std::cin >> t;
    app[t - 1] = 1;
  }
  for (int i = 0; i < n; i++) {
    std::cout << app[i] << " ";
  }
  std::cout << std::endl;
}
