#include <bits/stdc++.h>
int a[101];
using namespace std;
int main() {
  int n, c, b, x, z;
  cin >> n >> c >> b;
  for (int i = 1; i <= c; i++) {
    cin >> x;
    a[x]++;
  }
  for (int i = 1; i <= b; i++) {
    cin >> z;
    a[z] += 2;
  }
  for (int i = 1; i <= n; i++) {
    if (a[i] == 1 or a[i] == 2) {
      cout << a[i] << " ";
    } else if (a[i] == 3) {
      cout << a[i] - 1 << " ";
    }
  }
}
