#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> arr(101, 2);
  int n, a, b, x;
  scanf("%d%d%d", &n, &a, &b);
  for (int i = 0; i < a; i++) scanf("%d", &x), arr[x] = 1;
  for (int j = 0; j < b; j++) scanf("%d", &x);
  for (int i = 1; i <= n; i++) printf("%d ", arr[i]);
  return 0;
}
