#include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false);     cin.tie(NULL);     long long int t;     cin >> t;     while (t--) {       long long int n, s = 0;       cin >> n;       long long int* arr = new long long int[n];       for (long long int i = 0; i < n; i++) {         cin >> arr[i];         s += arr[i];       }       if (s == 0)         cout <<  NO               <<   n ;       else if (s > 0) {         cout <<  YES               <<   n ;         sort(arr, arr + n, greater<long long int>());         for (long long int i = 0; i < n; i++) cout << arr[i] <<    ;         cout <<   n ;       } else {         cout <<  YES               <<   n ;         sort(arr, arr + n);         for (long long int i = 0; i < n; i++) cout << arr[i] <<    ;         cout <<   n ;       }     }     return 0;   }   