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