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