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