#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long n, f[100][10], p[100][11];
  cin >> n;
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < 10; j++) {
      cin >> f[i][j];
    }
  }
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < 11; j++) {
      cin >> p[i][j];
    }
  }
  long long ans = LLONG_MIN;
  system("PAUSE");
  return 0;
}
