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 INF = 1000000000;
pair<int, int> score[6] = {{3, 0}, {3, 1}, {3, 2}, {2, 3}, {1, 3}, {0, 3}};
enum { L, W };
int iswin[6] = {};
int res[6][2] = {};
int resw, resl;
int sz;
int testbit(int n, int m) { return (n >> m) & 1; }
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int a, b;
    scanf("%d%d", &a, &b);
    bool any = false;
    for (int i = 0; i < 6 && !any; i++) {
      int w = score[i].first;
      int l = score[i].second;
      if (l < w) {
        for (int i = 0; i < l; i++) iswin[i] = false;
        for (int i = 0; i < w; i++) iswin[l + i] = true;
      } else {
        for (int i = 0; i < w; i++) iswin[i] = true;
        for (int i = 0; i < l; i++) iswin[i + w] = false;
      }
      for (int j = 0; j < (1 << (w + l)) && !any; j++) {
        int mina = 0;
        int maxa = 0;
        int minb = 0;
        int maxb = 0;
        for (int i = 0; i < (w + l); i++)
          if ((j >> i) & 1) {
            mina += (i == 4) ? 15 : 25;
            maxa += (i == 4) ? 15 : 25;
            minb += (i == 4) ? 15 : 25;
            maxb += (i == 4) ? 15 : 25;
            if (iswin[i]) {
              minb -= 2;
              maxb -= 2;
            } else {
              mina -= 2;
              maxa -= 2;
            }
          } else {
            if (iswin[i]) {
              mina += (i == 4) ? 15 : 25;
              maxa += (i == 4) ? 15 : 25;
              minb += 0;
              maxb += (i == 4) ? 15 : 25;
              maxb -= 3;
            } else {
              minb += (i == 4) ? 15 : 25;
              maxb += (i == 4) ? 15 : 25;
              mina += 0;
              maxa += (i == 4) ? 15 : 25;
              maxa -= 3;
            }
          }
        if (j == 0) {
          if (mina <= a && a <= maxa && minb <= b && b <= maxb) {
            any = true;
            resw = w;
            resl = l;
            int a_add = a - mina;
            int b_add = b - minb;
            for (int i = 0; i < (w + l); i++) {
              int loa, hia, lob, hib;
              if (iswin[i]) {
                loa = hia = (i == 4) ? 15 : 25;
                lob = 0;
                hib = ((i == 4) ? 15 : 25) - 3;
              } else {
                lob = hib = (i == 4) ? 15 : 25;
                loa = 0;
                hia = ((i == 4) ? 15 : 25) - 3;
              }
              int inca = min(a_add, hia - loa);
              int incb = min(b_add, hib - lob);
              a_add -= inca;
              b_add -= incb;
              res[i][0] = loa + inca;
              res[i][1] = lob + incb;
            }
            assert(a_add == 0 && b_add == 0);
            break;
          }
        } else {
          int mindiff = 0;
          int maxdiff = 0;
          for (int i = 0; i < (w + l); i++)
            if (testbit(j, i)) {
              if (iswin[i]) {
                mindiff += 2;
                maxdiff += 2;
              } else {
                mindiff -= 2;
                maxdiff -= 2;
              }
            } else {
              if (iswin[i]) {
                maxdiff += (i == 4) ? 15 : 25;
                mindiff += 3;
              } else {
                mindiff -= (i == 4) ? 15 : 25;
                maxdiff -= 3;
              }
            }
          if (mindiff <= (a - b) && (a - b) <= maxdiff) {
            int a_add = 0;
            int b_add = 0;
            int c_add = 0;
            if ((mina - minb) < a - b)
              a_add += (a - b) - (mina - minb);
            else
              b_add -= (a - b) - (mina - minb);
            c_add = (a - mina - a_add);
            assert(c_add == b - minb - b_add);
            if (mina + a_add <= a && minb + b_add <= b) {
              any = true;
              resw = w;
              resl = l;
              for (int i = 0; i < (w + l); i++) {
                int loa, hia, lob, hib;
                if (!testbit(j, i)) {
                  if (iswin[i]) {
                    loa = hia = (i == 4) ? 15 : 25;
                    lob = 0;
                    hib = ((i == 4) ? 15 : 25) - 3;
                  } else {
                    lob = hib = (i == 4) ? 15 : 25;
                    loa = 0;
                    hia = ((i == 4) ? 15 : 25) - 3;
                  }
                } else {
                  if (iswin[i]) {
                    loa = hia = (i == 4) ? 15 : 25;
                    lob = hib = ((i == 4) ? 15 : 25) - 2;
                  } else {
                    lob = hib = (i == 4) ? 15 : 25;
                    loa = hia = ((i == 4) ? 15 : 25) - 2;
                  }
                }
                int inca = min(a_add, hia - loa);
                int incb = min(b_add, hib - lob);
                a_add -= inca;
                b_add -= incb;
                if (testbit(j, i)) {
                  inca += c_add;
                  incb += c_add;
                  c_add = 0;
                }
                res[i][0] = loa + inca;
                res[i][1] = lob + incb;
              }
              break;
            }
          }
        }
      }
    }
    if (any) {
      printf("%d:%d\n", resw, resl);
      for (int i = 0; i < resw + resl; i++)
        printf("%d:%d ", res[i][0], res[i][1]);
      puts("");
    } else
      printf("Impossible\n");
  }
  return 0;
}