#include <bits/stdc++.h>
using namespace std;
int64_t inf = INTMAX_MAX;
int64_t dp(map<int64_t, int64_t> &table, int64_t now, int64_t nowc) {
  auto itr = table.find(now);
  if (itr != table.end()) {
    return table[now];
  }
}
int main() {
  int t;
  cin >> t;
  for (int test = 0; test < t; test++) {
    int64_t n, a, b, c, d;
    cin >> n >> a >> b >> c >> d;
    int64_t ans = d;
    int64_t now = 1;
    map<int64_t, int64_t> table;
    table[0] = 0;
  }
}
