Problem: In the game of Mastermind, there are two players — Alice and Bob. Alice has a secret code, which Bob tries to guess. Here, a code is defined as a sequence of n colors. There are exactly n+1 colors in the entire universe, numbered from 1 to n+1 inclusive.

When Bob guesses a code, Alice tells him some information about how good of a guess it is, in the form of two integers x and y.

The first integer x is the number of indices where Bob's guess correctly matches Alice's code. The second integer y is the size of the intersection of the two codes as multisets. That is, if Bob were to change the order of the colors in his guess, y is the maximum number of indices he could get correct.

For example, suppose n=5, Alice's code is [3,1,6,1,2], and Bob's guess is [3,1,1,2,5]. At indices 1 and 2 colors are equal, while in the other indices they are not equal. So x=2. And the two codes have the four colors 1,1,2,3 in common, so y=4.

<image> Solid lines denote a matched color for the same index. Dashed lines denote a matched color at a different index. x is the number of solid lines, and y is the total number of lines. 

You are given Bob's guess and two values x and y. Can you find one possibility of Alice's code so that the values of x and y are correct?

Input

The first line contains a single integer t (1≤ t≤ 1000) — the number of test cases. Next 2t lines contain descriptions of test cases.

The first line of each test case contains three integers n,x,y (1≤ n≤ 10^5, 0≤ x≤ y≤ n) — the length of the codes, and two values Alice responds with.

The second line of each test case contains n integers b_1,…,b_n (1≤ b_i≤ n+1) — Bob's guess, where b_i is the i-th color of the guess.

It is guaranteed that the sum of n across all test cases does not exceed 10^5.

Output

For each test case, on the first line, output "YES" if there is a solution, or "NO" if there is no possible secret code consistent with the described situation. You can print each character in any case (upper or lower).

If the answer is "YES", on the next line output n integers a_1,…,a_n (1≤ a_i≤ n+1) — Alice's secret code, where a_i is the i-th color of the code.

If there are multiple solutions, output any.

Example

Input


7
5 2 4
3 1 1 2 5
5 3 4
1 1 2 1 2
4 0 4
5 5 3 3
4 1 4
2 3 2 3
6 1 2
3 2 1 1 1 1
6 2 4
3 3 2 1 1 1
6 2 6
1 1 3 2 1 1


Output


YES
3 1 6 1 2
YES
3 1 1 1 2
YES
3 3 5 5
NO
YES
4 4 4 4 3 1
YES
3 1 3 1 7 7
YES
2 3 1 1 1 1

Note

The first test case is described in the statement.

In the second test case, x=3 because the colors are equal at indices 2,4,5. And y=4 because they share the colors 1,1,1,2.

In the third test case, x=0 because there is no index where the colors are the same. But y=4 because they share the colors 3,3,5,5.

In the fourth test case, it can be proved that no solution exists.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
const int inf = 0x3f3f3f3f, Inf = 0x7fffffff;
const long long INF = 0x3f3f3f3f3f3f3f3f;
__inline__ __attribute__((always_inline)) unsigned int rnd() {
  static unsigned int seed = 416;
  return seed ^= seed >> 5, seed ^= seed << 17, seed ^= seed >> 13;
}
template <typename _Tp>
_Tp gcd(const _Tp &a, const _Tp &b) {
  return (!b) ? a : gcd(b, a % b);
}
template <typename _Tp>
__inline__ __attribute__((always_inline)) _Tp abs(const _Tp &a) {
  return a >= 0 ? a : -a;
}
template <typename _Tp>
__inline__ __attribute__((always_inline)) _Tp max(const _Tp &a, const _Tp &b) {
  return a < b ? b : a;
}
template <typename _Tp>
__inline__ __attribute__((always_inline)) _Tp min(const _Tp &a, const _Tp &b) {
  return a < b ? a : b;
}
template <typename _Tp>
__inline__ __attribute__((always_inline)) void chmax(_Tp &a, const _Tp &b) {
  (a < b) && (a = b);
}
template <typename _Tp>
__inline__ __attribute__((always_inline)) void chmin(_Tp &a, const _Tp &b) {
  (b < a) && (a = b);
}
template <typename _Tp>
__inline__ __attribute__((always_inline)) void read(_Tp &x) {
  char ch(getchar());
  bool f(false);
  while (ch < 48 || ch > 57) f |= ch == 45, ch = getchar();
  x = ch & 15, ch = getchar();
  while (ch >= 48 && ch <= 57)
    x = (((x << 2) + x) << 1) + (ch & 15), ch = getchar();
  if (f) x = -x;
}
template <typename _Tp, typename... Args>
__inline__ __attribute__((always_inline)) void read(_Tp &t, Args &...args) {
  read(t);
  read(args...);
}
__inline__ __attribute__((always_inline)) int read_str(char *s) {
  char ch(getchar());
  while (ch == ' ' || ch == '\r' || ch == '\n') ch = getchar();
  char *tar = s;
  *tar = ch, ch = getchar();
  while (ch != ' ' && ch != '\r' && ch != '\n' && ch != EOF)
    *(++tar) = ch, ch = getchar();
  return tar - s + 1;
}
const int N = 100005;
int a[N];
struct node {
  int val, cnt;
  __inline__ __attribute__((always_inline)) bool operator<(
      const node &o) const {
    return cnt < o.cnt;
  }
};
struct Node {
  int val, id;
  __inline__ __attribute__((always_inline)) bool operator<(
      const Node &o) const {
    return val < o.val;
  }
};
std::priority_queue<node> q;
int cnt[N], n, x, y;
int b[N], c[N], d[N];
int qwq;
std::vector<Node> solve(std::vector<Node> v) {
  while (!q.empty()) q.pop();
  memset(cnt, 0, sizeof(cnt));
  for (auto it : v) ++cnt[it.val];
  for (int i = 1; i <= n + 1; ++i)
    if (cnt[i]) q.push((node){i, cnt[i]});
  int lim = n - y;
  std::vector<Node> ans;
  while (lim--) {
    node tmp = q.top();
    q.pop();
    --cnt[tmp.val];
    if (--tmp.cnt) q.push(tmp);
  }
  for (auto it : v) {
    if (cnt[it.val])
      ans.push_back(it), --cnt[it.val];
    else
      ans.push_back((Node){qwq, it.id});
  }
  return ans;
}
int __[N];
void MAIN() {
  memset(cnt, 0, sizeof(cnt));
  memset(b, 0, sizeof(b));
  memset(__, 0, sizeof(__));
  while (!q.empty()) q.pop();
  read(n, x, y);
  for (int i = 1; i <= n; ++i) read(a[i]), ++cnt[a[i]];
  for (int i = 1; i <= n + 1; ++i)
    if (cnt[i])
      q.push((node){i, cnt[i]});
    else
      qwq = i;
  int lim = x;
  std::vector<int> v;
  std::vector<Node> _;
  while (lim--) {
    node tmp = q.top();
    q.pop();
    v.push_back(tmp.val);
    --cnt[tmp.val];
    if (--tmp.cnt) q.push(tmp);
  }
  std::multiset<int> S;
  for (auto it : v) S.insert(it);
  for (int i = 1; i <= n; ++i) {
    auto it = S.find(a[i]);
    if (it != S.end()) {
      b[i] = a[i];
      S.erase(it);
    } else
      _.push_back((Node){a[i], i});
  }
  std::sort(_.begin(), _.end());
  _ = solve(_);
  for (int i = 0; i < ((int)_.size()); ++i) c[i] = _[i].id;
  int maxx = 0;
  for (int i = 0; i < ((int)_.size()); ++i) {
    if (_[i].val == qwq) continue;
    int j = i;
    while (j + 1 < ((int)_.size()) && _[j + 1].val == _[i].val) ++j;
    chmax(maxx, j - i + 1);
    i = j;
  }
  std::vector<int> ___;
  for (int i = maxx; i < ((int)_.size()); ++i) ___.push_back(_[i].val);
  for (int i = 0; i < maxx; ++i) ___.push_back(_[i].val);
  for (int i = 0; i < ((int)___.size()); ++i) b[c[i]] = ___[i];
  int ans1 = 0, ans2 = 0;
  for (int i = 1; i <= n; ++i) ans1 += a[i] == b[i], ++__[a[i]];
  for (int i = 1; i <= n; ++i)
    if (__[b[i]]) ++ans2, --__[b[i]];
  if (ans1 == x && ans2 == y) {
    printf("YES\n");
    for (int i = 1; i <= n; ++i) printf("%d ", b[i]);
    printf("\n");
  } else
    printf("NO\n");
}
int main() {
  int _;
  read(_);
  while (_--) MAIN();
  return 0;
}