#include <bits/stdc++.h>   using namespace std;   using namespace std;   int main() {     int t;     cin >> t;     while (t--) {       long long a, b, c, d;       long long ar[6];       cin >> a >> b >> c;       ar[0] = a;       ar[1] = b;       ar[2] = c;       sort(ar, ar + 3);       cout << ar[2] + 1 << endl;     }   }   