Problem: Alice is a big fan of volleyball and especially of the very strong "Team A".

Volleyball match consists of up to five sets. During each set teams score one point for winning a ball. The first four sets are played until one of the teams scores at least 25 points and the fifth set is played until one of the teams scores at least 15 points. Moreover, if one of the teams scores 25 (or 15 in the fifth set) points while the other team scores 24 (or 14 in the fifth set), the set is played until the absolute difference between teams' points becomes two. The match ends when one of the teams wins three sets. The match score is the number of sets won by each team.

Alice found a book containing all the results of all matches played by "Team A". The book is old, and some parts of the book became unreadable. Alice can not read the information on how many sets each of the teams won, she can not read the information on how many points each of the teams scored in each set, she even does not know the number of sets played in a match. The only information she has is the total number of points scored by each of the teams in all the sets during a single match.

Alice wonders what is the best match score "Team A" could achieve in each of the matches. The bigger is the difference between the number of sets won by "Team A" and their opponent, the better is the match score. Find the best match score or conclude that no match could end like that. If there is a solution, then find any possible score for each set that results in the best match score.

Input

The first line contains a single integer m (1 ≤ m ≤ 50 000) — the number of matches found by Alice in the book.

Each of the next m lines contains two integers a and b (0 ≤ a, b ≤ 200) — the number of points scored by "Team A" and the number of points scored by their opponents respectively.

Output

Output the solution for every match in the same order as they are given in the input. If the teams could not score a and b points respectively, output "Impossible".

Otherwise, output the match score formatted as "x:y", where x is the number of sets won by "Team A" and y is the number of sets won by their opponent. 

The next line should contain the set scores in the order they were played. Each set score should be printed in the same format as the match score, with x being the number of points scored by "Team A" in this set, and y being the number of points scored by their opponent.

Example

Input


6
75 0
90 90
20 0
0 75
78 50
80 100


Output


3:0
25:0 25:0 25:0
3:1
25:22 25:22 15:25 25:21
Impossible
0:3
0:25 0:25 0:25
3:0
25:11 28:26 25:13
3:2
25:17 0:25 25:22 15:25 15:11

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const long long N = 201;
int dp[N][N][5][5][2];
struct trans {
  long long a, b, s1, s2, init;
  trans() {
    a = 0;
    b = 0;
    s1 = 0;
    s2 = 0;
    init = 0;
  }
};
trans transition[N][N][5][5][2];
int calc(long long a, long long b, long long s1, long long s2, long long init) {
  if (dp[a][b][s1][s2][init] != -1) {
    return dp[a][b][s1][s2][init];
  }
  bool f1 = true;
  bool f2 = true;
  if (init == 1) {
    if (s1 > s2) {
      f2 = false;
    } else {
      f1 = false;
    }
  }
  long long game_no = s1 + s2;
  if (game_no == 5) {
    if (s1 && f1) {
      if (a >= 15) {
        for (long long i = 0; i <= min(13ll, b); i++) {
          long long aa = a - 15;
          long long bb = b - i;
          long long res = calc(aa, bb, s1 - 1, s2, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1 - 1;
            tran.s2 = s2;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
        for (long long i = 16; i <= a; i++) {
          long long aa = a - i;
          long long bb = b - i + 2;
          if (bb < 0) break;
          long long res = calc(aa, bb, s1 - 1, s2, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1 - 1;
            tran.s2 = s2;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
      }
    }
    if (s2 && f2) {
      if (b >= 15) {
        for (long long i = 0; i <= min(13ll, a); i++) {
          long long bb = b - 15;
          long long aa = a - i;
          long long res = calc(aa, bb, s1, s2 - 1, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1;
            tran.s2 = s2 - 1;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
        for (long long i = 16; i <= b; i++) {
          long long bb = b - i;
          long long aa = a - i + 2;
          if (aa < 0) break;
          long long res = calc(aa, bb, s1, s2 - 1, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1;
            tran.s2 = s2 - 1;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
      }
    }
  } else {
    if (s1 && f1) {
      if (a >= 25) {
        for (long long i = 0; i <= min(23ll, b); i++) {
          long long aa = a - 25;
          long long bb = b - i;
          long long res = calc(aa, bb, s1 - 1, s2, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1 - 1;
            tran.s2 = s2;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
        for (long long i = 26; i <= a; i++) {
          long long aa = a - i;
          long long bb = b - i + 2;
          if (bb < 0) break;
          long long res = calc(aa, bb, s1 - 1, s2, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1 - 1;
            tran.s2 = s2;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
      }
    }
    if (s2 && f2) {
      if (b >= 25) {
        for (long long i = 0; i <= min(23ll, a); i++) {
          long long bb = b - 25;
          long long aa = a - i;
          long long res = calc(aa, bb, s1, s2 - 1, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1;
            tran.s2 = s2 - 1;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
        for (long long i = 26; i <= b; i++) {
          long long bb = b - i;
          long long aa = a - i + 2;
          if (aa < 0) break;
          long long res = calc(aa, bb, s1, s2 - 1, 0);
          if (res) {
            auto& tran = transition[a][b][s1][s2][init];
            tran.a = aa;
            tran.b = bb;
            tran.s1 = s1;
            tran.s2 = s2 - 1;
            tran.init = 0;
            return dp[a][b][s1][s2][init] = 1;
          }
        }
      }
    }
  }
  return dp[a][b][s1][s2][init] = 0;
}
const long long inf = 1e18;
void print(long long a, long long b, long long s1, long long s2,
           long long init) {
  auto& trans = transition[a][b][s1][s2][init];
  if (trans.a == inf) {
    return;
  }
  print(trans.a, trans.b, trans.s1, trans.s2, trans.init);
  long long aa = a - trans.a;
  long long bb = b - trans.b;
  cout << aa << ":" << bb << " ";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  for (long long i = 0; i < N; i++) {
    for (long long j = 0; j < N; j++) {
      for (long long k = 0; k < 5; k++) {
        for (long long l = 0; l < 5; l++) {
          dp[i][j][k][l][0] = dp[i][j][k][l][1] = -1;
        }
      }
    }
  }
  dp[0][0][0][0][0] = dp[0][0][0][0][1] = 1;
  transition[0][0][0][0][0].a = transition[0][0][0][0][1].a = inf;
  long long t;
  cin >> t;
  while (t--) {
    long long a, b;
    cin >> a >> b;
    bool flag = 0;
    for (long long i = 0; i <= 2; i++) {
      if (calc(a, b, 3, i, 1)) {
        cout << 3 << ":" << i << endl;
        print(a, b, 3, i, 1);
        cout << endl;
        flag = 1;
        break;
      }
    }
    if (!flag) {
      for (long long i = 2; i >= 0; i--) {
        if (calc(a, b, i, 3, 1)) {
          cout << i << ":" << 3 << endl;
          print(a, b, i, 3, 1);
          cout << endl;
          flag = 1;
          break;
        }
      }
    }
    if (!flag) {
      cout << "Impossible" << endl;
    }
  }
}