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 int maxn = 202;
using namespace std;
bool F[4][4][maxn][maxn];
pair<int, int> from[4][4][maxn][maxn];
void init() {
  F[0][0][0][0] = true;
  static bool tmp[maxn][maxn];
  static pair<int, int> frm[maxn][maxn];
  for (int i = (0); i < (3); ++i)
    for (int j = (0); j < (3); ++j) {
      int a, b = (i + j == 4) ? 15 : 25;
      for (a = 0; a + 2 < b; ++a) {
        for (int x = (0); x < (maxn - a); ++x)
          for (int y = (0); y < (maxn - b); ++y)
            if (F[i][j][x][y]) {
              F[i][j + 1][x + a][y + b] = true;
              from[i][j + 1][x + a][y + b] = make_pair(x, y);
            }
      }
      memset(tmp, 0, sizeof(tmp));
      {
        for (int x = (a); x < (maxn); ++x)
          for (int y = (b); y < (maxn); ++y) {
            if (F[i][j][x - a][y - b]) {
              tmp[x][y] = true;
              frm[x][y] = make_pair(x - a, y - b);
            }
          }
        for (int x = (1); x < (maxn); ++x)
          for (int y = (1); y < (maxn); ++y)
            if (tmp[x - 1][y - 1]) {
              tmp[x][y] = true;
              frm[x][y] = frm[x - 1][y - 1];
            }
        for (int x = (0); x < (maxn); ++x)
          for (int y = (0); y < (maxn); ++y)
            if (tmp[x][y]) {
              F[i][j + 1][x][y] = true;
              from[i][j + 1][x][y] = frm[x][y];
            }
      }
      a = (i + j == 4) ? 15 : 25;
      for (b = 0; b + 2 < a; ++b) {
        for (int x = (0); x < (maxn - a); ++x)
          for (int y = (0); y < (maxn - b); ++y)
            if (F[i][j][x][y]) {
              F[i + 1][j][x + a][y + b] = true;
              from[i + 1][j][x + a][y + b] = make_pair(x, y);
            }
      }
      memset(tmp, 0, sizeof(tmp));
      {
        for (int x = (a); x < (maxn); ++x)
          for (int y = (b); y < (maxn); ++y) {
            if (F[i][j][x - a][y - b]) {
              tmp[x][y] = true;
              frm[x][y] = make_pair(x - a, y - b);
            }
          }
        for (int x = (1); x < (maxn); ++x)
          for (int y = (1); y < (maxn); ++y)
            if (tmp[x - 1][y - 1]) {
              tmp[x][y] = true;
              frm[x][y] = frm[x - 1][y - 1];
            }
        for (int x = (0); x < (maxn); ++x)
          for (int y = (0); y < (maxn); ++y)
            if (tmp[x][y]) {
              F[i + 1][j][x][y] = true;
              from[i + 1][j][x][y] = frm[x][y];
            }
      }
    }
}
pair<int, int> Ans[10];
int Anscnt;
bool Find(int a, int b, int x, int y) {
  if (!F[a][b][x][y]) return false;
  int nx = from[a][b][x][y].first, ny = from[a][b][x][y].second;
  if (!a && !b) return true;
  int dx = x - nx, dy = y - ny;
  if (dx > dy)
    Find(a - 1, b, nx, ny);
  else
    Find(a, b - 1, nx, ny);
  Ans[Anscnt++] = make_pair(dx, dy);
  return true;
}
void Print(int a, int b) {
  printf("%d:%d\n", a, b);
  for (int i = (0); i < (Anscnt); ++i)
    printf("%d:%d%c", Ans[i].first, Ans[i].second, " \n"[i + 1 == Anscnt]);
}
void work() {
  int a, b;
  scanf("%d%d", &a, &b);
  Anscnt = 0;
  if (Find(3, 0, a, b))
    Print(3, 0);
  else if (Find(3, 1, a, b))
    Print(3, 1);
  else if (Find(3, 2, a, b))
    Print(3, 2);
  else if (Find(2, 3, a, b))
    Print(2, 3);
  else if (Find(1, 3, a, b))
    Print(1, 3);
  else if (Find(0, 3, a, b))
    Print(0, 3);
  else
    puts("Impossible");
}
int main() {
  init();
  int T;
  scanf("%d", &T);
  while (T--) {
    work();
  }
  return 0;
}