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