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