#include #include #include using namespace std; using ll=long long; #define rep(i,n) for(int i=0;i=0;i--) #define all(v) v.begin(),v.end() #define rall(v) v.rbegin(),v.rend() template bool chmax(T &a, T b){if (a < b){a = b;return true;} else return false;} template bool chmin(T &a, T b){if (a > b){a = b;return true;} else return false;} ll d(int x,int y,vector>&A){ ll dist=0; rep(i,5)dist+=abs(A[x][i]-A[y][i]); return dist; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; vector>A(n,vector(5)); rep(i,n)rep(j,5)cin>>A[i][j]; int s=-1; ll ds=-1; rep(i,n){ if(chmax(ds,d(0,i,A)))s=i; } int t=-1; ll dt=-1; rep(i,n){ if(chmax(dt,d(s,i,A)))t=i; } rep(i,n){ cout<