codeforce round 720_#include


​ https://codeforces.com/contest/1521/problem/B​

#include <iostream>
#include <cmath>
using namespace std;

int main () {


int t;
cin >> t;
while (t --) {
int res = 1e9 + 7, pos = -1;
int n;
cin >> n;
for (int i = 0; i < n; i ++) {
int a;
cin >> a;
if (a < res) res = a, pos = i;
}
cout << n - 1 << endl;
for (int i = 0; i < n; i ++) {
if (i == pos) continue;
cout << pos + 1 << " " << i + 1 << " " << res << " " << res + abs (i - pos) << endl;
}
}
return 0;

}