#include <bits/stdc++.h>
int main() {
  int n, a, b, arr1[1001], arr2[10001], i, j, t = 0, k = 0;
  scanf("%d%d%d", &n, &a, &b);
  for (i = 0; i < a; i++) {
    scanf("%d", &arr1[i]);
  }
  for (i = 0; i < b; i++) {
    scanf("%d", &arr2[i]);
  }
  for (i = 0; i < a; i++) {
    for (j = 0; j < a; j++) {
      if (arr1[i] < arr1[j]) {
        t = arr1[i];
        arr1[i] = arr1[j];
        arr1[j] = t;
      }
    }
  }
  j = 1;
  for (i = 0; i < n; i++) {
    if (j == arr1[k]) {
      printf("1 ");
      k++;
    } else {
      printf("2 ");
    }
    j++;
  }
  return 0;
}
