#include <bits/stdc++.h>
using namespace std;
const int maxx = 1e2 + 20;
int a[maxx];
int main() {
  int x, y, n;
  cin >> n >> x >> y;
  while (x--) {
    int p;
    cin >> p;
    a[p] = 1;
  }
  for (int i = 1; i <= n; i++) cout << 2 - a[i] << ' ';
  return 0;
}
