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