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