#include <bits/stdc++.h>
#define PB push_back
#define MP make_pair
#define REP(i,n) for (int i=0;i<(n);i++)
#define INF (1<<29)
using namespace std;
typedef long long ll;
int main(){
      int n;
      int p[200];
      int a[3][200];
      int c[3][101];
      REP(i,3)REP(j,101)c[i][j]=0;
      REP(i,200)p[i]=0;
      cin>>n;
      REP(i,n)REP(j,3){
            cin>>a[j][i];
            c[j][a[j][i]]++;
      }
      REP(i,n)REP(j,3){
            if(c[j][a[j][i]]==1){
                  p[i]+=a[j][i];
            }
      }
      REP(i,n){
            cout<<p[i]<<endl;
      }
}