#include <bits/stdc++.h>   using namespace std;   int main() {     long long int i, j, k, t, n;     cin >> t;     while (t--) {       cin >> i >> j >> k;       i = i + j + k;       cout << i / 2 << endl;     }   }   