#include<bits/stdc++.h> using namespace std; int main(){ int T, n, a;scanf("%d",&T); while(T --){ scanf("%d",&n); int odd = 0, even = 0; for(int i = 0; i < n; i ++){ scanf("%d",&a); odd += a % 2; even += a - (a & 1); } if(odd == 0){ printf("%d ",even); continue; } even -= even % odd; printf("%d ",even/odd - ((even/odd) & 1) + 1); } return 0; }