#include <bits/stdc++.h>
using namespace std;
int T, a, b, c, d;
int N = 10000, M = 10000, n, now;
struct zc {
  int s, t, tot, tmp, tf, tc;
  void init() {
    s = 0;
    t = n * n + n + 1;
    tot = 1;
    return;
  }
  void put(int a, int b, int c, int d) {
    tot++;
    return;
  }
  void add(int a, int b, int c, int d) {
    put(a, b, c, d);
    put(b, a, 0, -d);
    return;
  }
  int dfs(int u, int rest, int totval) {
    if (u == t) {
      tc += rest * totval;
      return rest;
    }
    int ans = 0;
    return ans;
  }
  void work() {
    tf = tc = 0;
    return;
  }
};
int main() {
  cin >> T;
  while (T--) {
    cin >> a >> b >> c >> d;
    for (;;)
      ;
  }
  return 0;
}
