func_code_string: //Hare Krishna   //author: Dipjoy Basak   //dip_10      #include <bits/stdc++.h>   using namespace std;      #define endl   n    #define ll long long   #define int ll   #define ld long double   #define pb push_back   #define mp make_pair   #define ff first   #define ss ssecond   #define vi vector<int>   #define pi pair<int, int>   #define vpi vector<pair<int, int>>   #define rep(i, l, r) for (int i = l; i <= r; i++)   #define rrep(i, r, l) for (int i = r; i >= l; i--)   #ifndef ONLINE_JUDGE   #define debug(x)              cerr << #x <<    ;        _print(x);                cerr << endl;   #else   #define debug(x) ;   #endif   #define maxn 1000005   #define INF INT_MAX   const int mod = 1000000007;      void _print(int t) { cerr << t; }   void _print(string t) { cerr << t; }   void _print(char t) { cerr << t; }   void _print(ld t) { cerr << t; }   void _print(double t) { cerr << t; }      template <class T, class V>   void _print(pair<T, V> p);   template <class T>   void _print(vector<T> v);   template <class T>   void _print(set<T> v);   template <class T, class V>   void _print(map<T, V> v);   template <class T>   void _print(multiset<T> v);   template <class T, class V>   void _print(pair<T, V> p)   {       cerr <<  { ;       _print(p.ff);       cerr <<  , ;       _print(p.ss);       cerr <<  } ;   }   template <class T>   void _print(vector<T> v)   {       cerr <<  [  ;       for (T i : v)       {           _print(i);           cerr <<    ;       }       cerr <<  ] ;   }   template <class T>   void _print(set<T> v)   {       cerr <<  [  ;       for (T i : v)       {           _print(i);           cerr <<    ;       }       cerr <<  ] ;   }   template <class T>   void _print(multiset<T> v)   {       cerr <<  [  ;       for (T i : v)       {           _print(i);           cerr <<    ;       }       cerr <<  ] ;   }   template <class T, class V>   void _print(map<T, V> v)   {       cerr <<  [  ;       for (auto i : v)       {           _print(i);           cerr <<    ;       }       cerr <<  ] ;   }      //---------------------------------------------------------------------------------------------------------------------------------------      void solve()   {       int n;       cin >> n;       int a[n];       int idx = -1, mn = INT_MAX;       rep(i, 0, n - 1)       {           cin >> a[i];           if (a[i] < mn)           {               mn = a[i];               idx = i;           }       }       cout << n - 1 << endl;       int cnt = 1;       rep(i, idx + 1, n - 1)       {           cout << idx + 1 <<     << i + 1 <<     << mn <<     << mn + cnt << endl;           cnt++;       }       cnt = 1;       rrep(i, idx - 1, 0)       {           cout << idx + 1 <<     << i + 1 <<     << mn <<     << mn + cnt << endl;           cnt++;       }   }   int32_t main()   {       ios_base::sync_with_stdio(false);       cin.tie(NULL);       cout.tie(NULL);       cout << setprecision(15) << fixed;       int t;       t = 1;       cin >> t;       while (t--)       {           solve();       }       return 0;   }   