#include <bits/stdc++.h>
using namespace std;
long long _set(long long N, long long pos) { return N = N | (1 << pos); }
long long _reset(long long N, long long pos) { return N = N & ~(1 << pos); }
bool _check(long long N, long long pos) { return (bool)(N & (1 << pos)); }
bool _upper(char a) { return a >= 'A' && a <= 'Z'; }
bool _lower(char a) { return a >= 'a' && a <= 'z'; }
bool _digit(char a) { return a >= '0' && a <= '9'; }
long long dx[] = {1, -1, 0, 0, -1, -1, 1, 1};
long long dy[] = {0, 0, 1, -1, -1, 1, -1, 1};
pair<long long, long long> p[100010];
long long ans[100010];
int main() {
  long long n, a, b;
  cin >> n >> a >> b;
  for (long long i = 0; i < n; i++) {
    cin >> p[i].first;
    p[i].first *= a - b;
    p[i].second = i;
    ans[i] = 1;
  }
  sort(p, p + n);
  for (long long i = 0; i < b; i++) ans[p[n - i - 1].second] = 2;
  for (long long i = 0; i < n; i++) cout << ans[i] << ' ';
  return 0;
}
