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 ll = long long;
using vll = vector<ll>;
using ull = unsigned long long;
using int2 = pair<ll, ll>;
using int3 = tuple<ll, ll, ll>;
template <typename A>
string to_string(const A &v);
string to_string(const string &s) { return '"' + s + '"'; }
string to_string(const char *s) { return to_string((string)s); }
string to_string(char c) { return string(1, c); }
string to_string(bool b) { return (b ? "true" : "false"); }
template <typename A, typename B>
string to_string(const pair<A, B> &p) {
  return "(" + to_string(p.first) + ", " + to_string(p.second) + ")";
}
template <typename A, typename B, typename C>
string to_string(const tuple<A, B, C> &p) {
  return "(" + to_string(std::get<0>(p)) + ", " + to_string(std::get<1>(p)) +
         ", " + to_string(std::get<2>(p)) + ")";
}
template <typename A>
string to_string(const A &v) {
  bool first = true;
  string res = "{";
  for (const auto &x : v) {
    if (!first) {
      res += ", ";
    }
    first = false;
    res += to_string(x);
  }
  res += "}";
  return res;
}
template <typename T>
void sort(vector<T> &val) {
  sort(val.begin(), val.end());
}
template <typename T>
void reverse(vector<T> &val) {
  reverse(val.begin(), val.end());
}
template <typename T>
void sort_b(vector<T> &val) {
  sort(val.begin(), val.end(), greater<T>());
}
template <typename T>
T pair_sum(pair<T, T> &val) {
  return val.first + val.second;
}
template <typename T>
T min(T a, T b, T c) {
  return min(min(a, b), c);
}
template <typename T>
T max(T a, T b, T c) {
  return max(max(a, b), c);
}
template <typename T>
T mul_mod(T a, T b, T mod) {
  T res = 0;
  a %= mod;
  while (b) {
    if (b & 1) {
      res = (res + a) % mod;
    }
    a = (2 * a) % mod;
    b >>= 1;
  }
  return res;
}
template <typename T>
T fac_mod(T v, T mod) {
  ll res = 1;
  for (ll i = 1; i <= v; i++) {
    res *= i;
    res = res % mod;
  }
  return res;
}
template <typename T>
T pow_mod(T v, T p, T mod) {
  if (p == 1) return v;
  if (p % 2 == 0) {
    T t = pow_mod(v, p / 2, mod);
    return (t * t) % mod;
  } else {
    return (v * pow_mod(v, p - 1, mod)) % mod;
  }
}
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail>
void debug_out(Head H, Tail... T) {
  cerr << " " << to_string(H);
  debug_out(T...);
}
class mytask {
 public:
  mytask() {}
  int solve() {
    ll n;
    cin >> n;
    vll a(n);
    ll res_v = 0;
    for (ll i = 0; i < n; i++) {
      cin >> a[i];
      res_v = res_v ^ a[i];
    }
    if (n % 2 == 0 && res_v == 0) n--;
    vector<vll> res;
    if (n % 2 == 1) {
      for (ll i = 0; i < n - 2; i += 2) {
        res.push_back({i, i + 1, i + 2});
      }
      cout << "YES"
           << "\n";
      cout << res.size() * 2 - 1 << "\n";
      for (ll i = 0; i < res.size(); i++) {
        cout << res[i][0] + 1 << " " << res[i][1] + 1 << " " << res[i][2] + 1
             << "\n";
      }
      if (n == 3 && a[0] == a[1]) {
        for (ll i = ((ll)res.size() - 2); i >= 0; i--) {
          cout << res[i][0] + 1 << " " << res[i][1] + 1 << " " << res[i][2] + 1
               << "\n";
        }
      } else {
        for (ll i = res.size() - 2; i >= 0; i--) {
          cout << res[i][0] + 1 << " " << res[i][1] + 1 << " " << res[i][2] + 1
               << "\n";
        }
      }
    } else {
      cout << "NO"
           << "\n";
    }
    return 0;
  }
};
int main() {
  auto task = mytask();
  task.solve();
  return 0;
}