#include <bits/stdc++.h>
int main() {
  int n, ar, al, i, j;
  int result[101];
  scanf("%d%d%d", &n, &ar, &al);
  for (j = 0; j < ar; j++) {
    scanf("%d", &i);
    result[i - 1] = 1;
  }
  for (j = 0; j < al; j++) {
    scanf("%d", &i);
    if (result[i - 1] != 1) result[i - 1] = 2;
  }
  for (j = 0; j < n; j++) {
    printf("%d ", result[j]);
  }
  return 0;
}
