#include <bits/stdc++.h>
using namespace std;
long long n, m, x, y, t, ans, res, sum, mx, mn = 1e9, z, cnt, A, G, C, T;
string s, s1, s2, s3;
set<int> st;
pair<int, int> pr;
vector<int> v, v1, v2, v3, v4;
map<int, int> mp, mpp;
deque<int> d, d1, d2;
char a, b, c;
bool tr = false, fl = false;
long long used[10001];
int main() {
  cin >> n >> m >> x;
  for (int i = 0; i < m; i++) cin >> A, v.push_back(A);
  for (int i = 0; i < x; i++) cin >> G;
  sort(v.begin(), v.end());
  for (int i = 1; i <= n; i++) {
    if (i == v[c]) {
      v3.push_back(1);
      c++;
    } else
      v3.push_back(0);
  }
  for (int i = 0; i < v3.size(); i++) {
    if (v3[i] == 0)
      cout << 2 << " ";
    else
      cout << v3[i] << " ";
  }
}
