#include <bits/stdc++.h>
int main() {
  static int xx[100 + 1];
  int n, a, b, i;
  scanf("%d%d%d", &n, &a, &b);
  while (a--) {
    scanf("%d", &i), i--;
    xx[i] = 1;
  }
  while (b--) {
    scanf("%d", &i), i--;
    if (!xx[i] && n > 0) xx[i] = 2;
  }
  for (i = 0; i < n; i++) printf("%d ", xx[i]);
  printf("\n");
  return 0;
}
