#include <bits/stdc++.h>
using namespace std;
int arr[105];
int main() {
  int n, a, b;
  cin >> n >> a >> b;
  for (int i = 0; i < a; i++) {
    int x;
    cin >> x;
    arr[x] = 1;
  }
  for (int i = 1; i <= n; i++) {
    if (arr[i] == 0)
      cout << "2 ";
    else
      cout << arr[i] << " ";
  }
  return 0;
}
