#include <bits/stdc++.h>   using namespace std;   int main() {     int t, n;     cin >> t;     while (t--) {       cin >> n;       int a[n], sum = n - 1;       for (int i = 0; i < n; i++) {         cin >> a[i];         sum += a[i];       }       cout << sum / n << endl;     }     return 0;   }   