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