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>
#pragma comment(linker, "/STACK:16000000")
using namespace std;
namespace Geometry {
struct point {
  double x;
  double y;
  void print() { printf("Point:x:%.8lf,y:%.8lf", x, y); }
};
struct line {
  double x;
  double c;
  void print() { printf("Line:x:%.8lf,c:%.8lf\n", x, c); }
};
line make_line(point a, point b) {
  double x = (a.x - b.x) / (a.y - b.y);
  double c = a.y - (a.x) * (x);
  return (line){x, c};
}
}  // namespace Geometry
using namespace Geometry;
const int inf = 0x3f3f3f3f;
const long long inf2 = 0x3f3f3f3f3f3f3f3f;
const double eps = 1e-6;
const int mod = 1000000007;
void solve() {
  int a, b;
  scanf("%d%d", &a, &b);
  if (a == 75 && b <= 69) {
    puts("3:0");
    int x = b / 3, y = b / 3, z = b - x - y;
    if (z == 24) x++, z--;
    printf("%d:%d %d:%d %d:%d\n", 25, x, 25, y, 25, z);
    return;
  }
  if (a == 0 && b == 75) {
    puts("0:3");
    puts("0:25 0:25 0:25");
    return;
  }
  if (a - b >= 6 && a - b <= 52 && a >= 75) {
    int p = a - 50;
    puts("3:0");
    printf("%d:%d ", p, p - 2);
    b -= p - 2;
    printf("%d:%d ", 25, min(23, b));
    b -= min(23, b);
    printf("%d:%d\n", 25, min(23, b));
    b -= min(23, b);
    return;
  }
  if (b - a <= 19 && a >= 75 && b >= 25 && a - b <= 73) {
    int aa[] = {-1, -1, 25, 25}, bb[] = {-1, 25, -1, -1};
    aa[0] = 25;
    for (bb[0] = 0; bb[0] <= 23; bb[0]++)
      for (bb[2] = 0; bb[2] <= 23; bb[2]++) {
        aa[1] = a - aa[0] - aa[2] - aa[3];
        bb[3] = b - bb[0] - bb[1] - bb[2];
        if (aa[1] >= 0 && aa[1] <= 23 && bb[3] >= 0 && bb[3] <= 23) {
          printf("3:1\n");
          printf("%d:%d %d:%d %d:%d %d:%d\n", aa[0], bb[0], aa[1], bb[1], aa[2],
                 bb[2], aa[3], bb[3]);
          return;
        }
      }
    for (aa[0] = 26, bb[0] = 24; aa[0] <= a - 50 && bb[0] <= b - 25;
         aa[0]++, bb[0]++)
      for (bb[2] = 0; bb[2] <= 23; bb[2]++) {
        aa[1] = a - aa[0] - aa[2] - aa[3];
        bb[3] = b - bb[0] - bb[1] - bb[2];
        if (aa[1] >= 0 && aa[1] <= 23 && bb[3] >= 0 && bb[3] <= 23) {
          printf("3:1\n");
          printf("%d:%d %d:%d %d:%d %d:%d\n", aa[0], bb[0], aa[1], bb[1], aa[2],
                 bb[2], aa[3], bb[3]);
          return;
        }
      }
    bb[0] = 25;
    for (aa[0] = 0; aa[0] <= 23; aa[0]++) {
      aa[1] = a - aa[0] - aa[2] - aa[3];
      if (aa[1] < 0) continue;
      int tmp = b - bb[0];
      if (tmp <= 46 + aa[1] - 2 && (tmp >= aa[1] - 2) || (aa[1] == 25)) {
        int minu = aa[1] == 25 ? min(23, tmp) : aa[1] - 2;
        bb[1] = minu;
        tmp -= minu;
        bb[2] = min(tmp, 23);
        tmp -= min(tmp, 23);
        bb[3] = min(tmp, 23);
        printf("3:1\n");
        printf("%d:%d %d:%d %d:%d %d:%d\n", aa[0], bb[0], aa[1], bb[1], aa[2],
               bb[2], aa[3], bb[3]);
        return;
      }
    }
    for (aa[0] = 23, bb[0] = 25; aa[0] <= a - 75 && bb[0] <= b;
         aa[0]++, bb[0]++) {
      aa[1] = a - aa[0] - aa[2] - aa[3];
      int tmp = b - bb[0];
      if (tmp <= 46 + aa[1] - 2 && (tmp >= aa[1] - 2) || (aa[1] == 25)) {
        int minu = aa[1] == 25 ? min(23, tmp) : aa[1] - 2;
        bb[1] = minu;
        tmp -= minu;
        bb[2] = min(tmp, 23);
        tmp -= min(tmp, 23);
        bb[3] = min(tmp, 23);
        printf("3:1\n");
        printf("%d:%d %d:%d %d:%d %d:%d\n", aa[0], bb[0], aa[1], bb[1], aa[2],
               bb[2], aa[3], bb[3]);
        return;
      }
    }
  }
  if (b - a <= 44 && a >= 65 && b >= 50 && a - b <= 61) {
    int p = b - 50, p2 = a - 40;
    int aa[5] = {25, 25, -1, -1, 15}, bb[5] = {-1, -1, -1, 25, -1};
    for (bb[0] = 0; bb[0] <= 23; bb[0]++)
      for (bb[1] = bb[0]; bb[1] <= 23; bb[1]++)
        for (aa[3] = 0; aa[3] <= 23; aa[3]++)
          for (bb[4] = 0; bb[4] <= 13; bb[4]++) {
            bb[2] = b - bb[0] - bb[1] - bb[3] - bb[4];
            aa[2] = a - aa[0] - aa[1] - aa[3] - aa[4];
            if (bb[2] >= 25 && bb[2] - aa[2] <= 25 &&
                (bb[1] == 23 || bb[4] == 13)) {
              int x = bb[1] == 23 ? 1 : 4;
              while (bb[2] != 25) {
                aa[2]--;
                bb[2]--;
                aa[x]++;
                bb[x]++;
              }
              printf("3:2\n");
              printf("%d:%d %d:%d %d:%d %d:%d %d:%d\n", aa[0], bb[0], aa[1],
                     bb[1], aa[2], bb[2], aa[3], bb[3], aa[4], bb[4]);
              return;
            }
            if (bb[2] < 25 || aa[2] < 0) continue;
            if (bb[2] - aa[2] == 2 || (bb[2] == 25 && aa[2] <= 23)) {
              printf("3:2\n");
              printf("%d:%d %d:%d %d:%d %d:%d %d:%d\n", aa[0], bb[0], aa[1],
                     bb[1], aa[2], bb[2], aa[3], bb[3], aa[4], bb[4]);
              return;
            }
          }
  }
  if (b - a <= 61 && a >= 40 && b >= 15 && a - b <= 71) {
    int aa[5] = {-1, -1, -1, 25, -1}, bb[5] = {25, 25, -1, -1, 15};
    for (aa[0] = 0; aa[0] <= 23; aa[0]++)
      for (aa[1] = aa[0]; aa[1] <= 23; aa[1]++)
        for (bb[3] = 0; bb[3] <= 23; bb[3]++)
          for (aa[4] = 0; aa[4] <= 13; aa[4]++) {
            aa[2] = a - aa[0] - aa[1] - aa[3] - aa[4];
            bb[2] = b - bb[0] - bb[1] - bb[3] - bb[4];
            if (aa[2] < 25 || bb[2] < 0) continue;
            if (aa[2] - bb[2] == 2 || (aa[2] == 25 && bb[2] <= 23)) {
              printf("2:3\n");
              printf("%d:25 %d:25 %d:%d 25:%d %d:15\n", aa[0], aa[1], aa[2],
                     bb[2], bb[3], aa[4]);
              return;
            }
          }
  }
  if (b - a <= 73 && a >= 25 && b >= 75 && a - b <= 19) {
    printf("1:3\n");
    int k = a - 25, p = b - 75;
    printf("%d:%d ", max(p + 2, 25), p);
    k = a - max(25, p + 2);
    printf("%d:%d ", min(23, k), 25);
    k -= min(23, k);
    printf("%d:%d ", min(23, k), 25);
    k -= min(23, k);
    printf("%d:%d\n", min(23, k), 25);
    k -= min(23, k);
    return;
  }
  if (b < 75) {
    puts("Impossible");
    return;
  }
  swap(a, b);
  if (a == 75 && b <= 69) {
    puts("0:3");
    int x = b / 3, y = b / 3, z = b - x - y;
    if (z == 24) x++, z--;
    printf("%d:%d %d:%d %d:%d\n", x, 25, y, 25, z, 25);
    return;
  }
  if (a - b >= 6 && a - b <= 52 && a >= 75) {
    int p = a - 50;
    puts("0:3");
    printf("%d:%d ", p - 2, p);
    b -= p - 2;
    printf("%d:%d ", min(23, b), 25);
    b -= min(23, b);
    printf("%d:%d\n", min(23, b), 25);
    b -= min(23, b);
    return;
  }
  puts("Impossible");
  return;
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    solve();
  }
  return 0;
}