Problem: Chaneka has a hobby of playing with animal toys. Every toy has a different fun value, a real number. Chaneka has four boxes to store the toys with specification: 

  * The first box stores toys with fun values in range of (-∞,-1]. 
  * The second box stores toys with fun values in range of (-1, 0). 
  * The third box stores toys with fun values in range of (0, 1). 
  * The fourth box stores toys with fun value in range of [1, ∞). 



Chaneka has A, B, C, D toys in the first, second, third, and fourth box, respectively. One day she decides that she only wants one toy, a super toy. So she begins to create this super toy by sewing all the toys she has.

While the number of toys Chaneka has is more than 1, she takes two different toys randomly and then sews them together, creating a new toy. The fun value of this new toy is equal to the multiplication of fun values of the sewn toys. She then puts this new toy in the appropriate box. She repeats this process until she only has one toy. This last toy is the super toy, and the box that stores this toy is the special box.

As an observer, you only know the number of toys in each box initially but do not know their fun values. You also don't see the sequence of Chaneka's sewing. Determine which boxes can be the special box after Chaneka found her super toy.

Input

The first line has an integer T (1 ≤ T ≤ 5 ⋅ 10^4), the number of test cases.

Every case contains a line with four space-separated integers A B C D (0 ≤ A, B, C, D ≤ 10^6, A + B + C + D > 0), which denotes the number of toys in the first, second, third, and fourth box, respectively.

Output

For each case, print four space-separated strings. Each string represents the possibility that the first, second, third, and fourth box can be the special box from left to right.

For each box, print "Ya" (Without quotes, Indonesian for yes) if that box can be the special box. Print "Tidak" (Without quotes, Indonesian for No) otherwise.

Example

Input


2
1 2 0 1
0 1 0 0


Output


Ya Ya Tidak Tidak
Tidak Ya Tidak Tidak

Note

For the first case, here is a scenario where the first box is the special box: 

  * The first box had toys with fun values \{-3\}. 
  * The second box had toys with fun values \{ -0.5, -0.5 \} 
  * The fourth box had toys with fun values \{ 3 \} 



The sewing sequence: 

  1. Chaneka sews the toy with fun -0.5 and -0.5 to a toy with fun 0.25 and then put it in the third box. 
  2. Chaneka sews the toy with fun -3 and 0.25 to a toy with fun -0.75 and then put it in the second box. 
  3. Chaneka sews the toy with fun -0.75 and 3 to a toy with fun -1.25 and then put it in the first box, which then became the special box. 



Here is a scenario where the second box ends up being the special box: 

  * The first box had toys with fun values \{-3\} 
  * The second box had toys with fun values \{ -0.33, -0.25 \}. 
  * The fourth box had toys with fun values \{ 3 \}. 



The sewing sequence: 

  1. Chaneka sews the toy with fun -3 and -0.33 to a toy with fun 0.99 and then put it in the third box. 
  2. Chaneka sews the toy with fun 0.99 and 3 to a toy with fun 2.97 and then put in it the fourth box. 
  3. Chaneka sews the toy with fun 2.97 and -0.25 to a toy with fun -0.7425 and then put it in the second box, which then became the special box. 

There is only one toy for the second case, so Chaneka does not have to sew anything because that toy, by definition, is the super toy.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
inline long long isqrt(long long k) {
  long long r = sqrt(k) + 1;
  while (r * r > k) r--;
  return r;
}
inline long long icbrt(long long k) {
  long long r = cbrt(k) + 1;
  while (r * r * r > k) r--;
  return r;
}
inline long long mnz(long long& a, long long b) { return a = (a > b ? b : a); }
inline long long mxz(long long& a, long long b) { return a = (a < b ? b : a); }
inline string toString(long long n) {
  stringstream ss;
  ss << n;
  return ss.str();
}
double const eps = 1e-6;
long long const Base = 1e9 + 7, oo = 1e17, MAXN = 1e6;
long long A[MAXN + 5];
long long Solves() {
  long long n, m, k, cnt = 0, ans = 0, x, y, q, c, sum = 0, v = 0, t;
  long long a, b, d;
  cin >> a >> b >> c >> d;
  A[1] = a;
  A[2] = b;
  A[3] = c;
  A[4] = d;
  sum = a + b;
  if (a) v |= 1, cnt++, a = 1;
  if (b) v |= 2, cnt++, b = 1;
  if (c) v |= 4, cnt++, c = 1;
  if (d) v |= 8, cnt++, d = 1;
  if (cnt == 1) {
    if (sum % 2 == 0) {
      if (a)
        a = 0, d = 1;
      else if (b)
        b = 0, c = 1;
    }
    v = 0;
    if (a) v |= 1;
    if (b) v |= 2;
    if (c) v |= 4;
    if (d) v |= 8;
    for (long long i = 0; i <= 3; i++)
      cout << ((((v) >> (i)) & 1) ? "Ya" : "Tidak ") << " ";
    cout << "" << endl;
  }
  if (cnt == 2) {
    if ((a and b) or (c and d)) {
      if (sum & 1) {
        a = b = 1;
        c = d = 0;
      } else {
        a = b = 0;
        c = d = 1;
      }
      v = 0;
      if (a) v |= 1;
      if (b) v |= 2;
      if (c) v |= 4;
      if (d) v |= 8;
      for (long long i = 0; i <= 3; i++)
        cout << ((((v) >> (i)) & 1) ? "Ya" : "Tidak ") << " ";
      cout << "" << endl;
    } else {
      if (a and d) {
        if (sum & 1)
          d = 0;
        else
          a = 0;
      } else if (b and c) {
        if (sum & 1)
          c = 0;
        else
          b = 0;
      } else {
        if (sum & 1)
          a = b = 1, c = d = 0;
        else
          a = b = 0, c = d = 1;
      }
      v = 0;
      if (a) v |= 1;
      if (b) v |= 2;
      if (c) v |= 4;
      if (d) v |= 8;
      for (long long i = 0; i <= 3; i++)
        cout << ((((v) >> (i)) & 1) ? "Ya" : "Tidak ") << " ";
      cout << "" << endl;
    }
  }
  if (cnt == 3 or cnt == 4) {
    if (sum & 1) {
      a = b = 1;
      c = d = 0;
    } else {
      a = b = 0;
      c = d = 1;
    }
    v = 0;
    if (a) v |= 1;
    if (b) v |= 2;
    if (c) v |= 4;
    if (d) v |= 8;
    for (long long i = 0; i <= 3; i++)
      cout << ((((v) >> (i)) & 1) ? "Ya" : "Tidak ") << " ";
    cout << "" << endl;
  }
  return 0;
}
int main() {
  if (fopen("locin.txt", "r")) freopen("locin.txt", "r", stdin);
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long test = 1;
  cin >> test;
  for (long long T = 1; T <= test; T++) {
    Solves();
  }
}