Problem: Ksenia has an array a consisting of n positive integers a_1, a_2, …, a_n. 

In one operation she can do the following: 

  * choose three distinct indices i, j, k, and then 
  * change all of a_i, a_j, a_k to a_i ⊕ a_j ⊕ a_k simultaneously, where ⊕ denotes the [bitwise XOR operation](https://en.wikipedia.org/wiki/Bitwise_operation#XOR). 



She wants to make all a_i equal in at most n operations, or to determine that it is impossible to do so. She wouldn't ask for your help, but please, help her!

Input

The first line contains one integer n (3 ≤ n ≤ 10^5) — the length of a.

The second line contains n integers, a_1, a_2, …, a_n (1 ≤ a_i ≤ 10^9) — elements of a.

Output

Print YES or NO in the first line depending on whether it is possible to make all elements equal in at most n operations.

If it is possible, print an integer m (0 ≤ m ≤ n), which denotes the number of operations you do.

In each of the next m lines, print three distinct integers i, j, k, representing one operation. 

If there are many such operation sequences possible, print any. Note that you do not have to minimize the number of operations.

Examples

Input


5
4 2 1 7 2


Output


YES
1
1 3 4

Input


4
10 4 49 22


Output


NO

Note

In the first example, the array becomes [4 ⊕ 1 ⊕ 7, 2, 4 ⊕ 1 ⊕ 7, 4 ⊕ 1 ⊕ 7, 2] = [2, 2, 2, 2, 2].

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using longs = long long;
using uint = unsigned;
using ulongs = unsigned long long;
using longd = long double;
template <class printable>
void trace(const char *name, printable &&value) {
  cerr << name << " = " << value << endl;
}
template <class printable, class... args>
void trace(const char *names, printable &&value, args &&...list) {
  const char *separate = strchr(names + 1, ',');
  cerr.write(names, separate - names) << " = " << value << ',';
  trace(separate + 1, list...);
}
template <class T>
void print(T x) {
  if (x < 0) {
    putchar('-');
    x = -x;
  }
  static char str[40];
  int cnt = 0;
  while (x > 9) {
    str[cnt++] = (x % 10) + 48;
    x /= 10;
  }
  str[cnt++] = x + 48;
  while (cnt--) putchar(str[cnt]);
}
void print(char *s) { printf(s); }
void print(char ch) { putchar(ch); }
template <class T>
void println(T x) {
  print(x), putchar('\n');
}
static class Scanner {
  template <class T>
  inline T read() {
    T x = 0;
    int f = 0, ch = getchar();
    while (!isdigit(ch)) ch == '-' && (f = !f), ch = getchar();
    while (isdigit(ch)) x = x * 10 + ch - 48, ch = getchar();
    return f ? -x : x;
  }
  static inline bool isBlank(int x) { return x == ' ' || x == '\n'; }

 public:
  template <class T>
  void operator()(T &x) {
    x = read<T>();
  }
  template <class T, class... Ts>
  void operator()(T &x, Ts &...y) {
    (*this)(x), (*this)(y...);
  }
  void operator()(char *x) { scanf("%s", x); }
  void operator()(char &x) {
    do x = (char)getchar();
    while (isBlank(x));
  }
  int nextInt() { return read<int>(); }
  longs nextLongs() { return read<longs>(); }
  __int128 nextInt128() { return read<__int128>(); }
  char nextChar() {
    char x;
    (*this)(x);
    return x;
  }
} scanner;
const int N = 1e5 + 5;
int a[N];
int main() {
  ios::sync_with_stdio(false);
  std::cin.tie(nullptr);
  std::cout.tie(nullptr);
  int n = scanner.nextInt(), x;
  for (int i = 1; i <= n; ++i) a[i] = scanner.nextInt();
  if (n % 2) {
    puts("YES");
    println(n - 1);
    for (int i = 1; i < n; i += 2) printf("%d %d %d\n", i, i + 1, i + 2);
    for (int i = 1; i < n; i += 2) printf("%d %d %d\n", i, i + 1, n);
  } else {
    unordered_map<int, stack<int>> cnt;
    for (int i = 1; i <= n; ++i) cnt[a[i]].push(i);
    uint tmp = 0;
    for (int i = 1; i <= n; ++i) tmp ^= (uint)a[i];
    bool ok = !tmp;
    if (!ok)
      puts("NO");
    else {
      puts("YES");
      println(n - 2);
      const auto nn = n - 1;
      for (int i = 1; i < nn; i += 2) printf("%d %d %d\n", i, i + 1, i + 2);
      for (int i = 1; i < nn; i += 2) printf("%d %d %d\n", i, i + 1, nn);
    }
  }
  return 0;
}