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 N = 1e5 + 5;
inline int read() {
  int x = 0, w = 1;
  char ch = 0;
  while (ch < '0' || ch > '9') {
    ch = getchar();
    if (ch == '-') w = -1;
  }
  while (ch <= '9' && ch >= '0') {
    x = (x << 1) + (x << 3) + ch - '0';
    ch = getchar();
  }
  return x * w;
}
int p[10];
int k1[10], k2[10], ans1[10], ans2[10];
int a, b, p1, p2, flag;
inline void chk(int n, int c1, int c2) {
  int cnt1 = 0, cnt2 = 0;
  memset(k1, 0, sizeof(k1));
  memset(k2, 0, sizeof(k2));
  if ((c1 - c2 <= p1 - p2)) return;
  for (int i = 1; i <= n; ++i) {
    if (p[i] == 1)
      cnt1 += (k1[i] = (i == 5) ? 15 : 25);
    else
      cnt2 += (k2[i] = (i == 5) ? 15 : 25);
  }
  if (cnt1 > a || cnt2 > b) return;
  if (n == 5) {
    if (p[5]) {
      if (cnt2 + 13 <= b) {
        cnt2 += 13;
        k2[5] = 13;
        int now = min(a - cnt1, b - cnt2);
        cnt1 += now, cnt2 += now;
        k1[5] += now, k2[5] += now;
      }
    } else {
      if (cnt1 + 13 <= a) {
        cnt1 += 13;
        k1[5] = 13;
        int now = min(a - cnt1, b - cnt2);
        cnt1 += now, cnt2 += now;
        k1[5] += now, k2[5] += now;
      }
    }
    for (int i = 1; i <= n; ++i) {
      int k = (i == 5) ? 13 : 23;
      if (!p[i]) {
        if (k1[i]) continue;
        if (cnt1 + k > a)
          k1[i] = a - cnt1;
        else
          k1[i] = k;
        cnt1 += k1[i];
      } else {
        if (k2[i]) continue;
        if (cnt2 + k > b)
          k2[i] = b - cnt2;
        else
          k2[i] = k;
        cnt2 += k2[i];
      }
    }
    if (cnt1 == a && cnt2 == b && c1 - c2 > p1 - p2) {
      p1 = c1, p2 = c2;
      flag = 1;
      for (int i = 1; i <= n; ++i) ans1[i] = k1[i], ans2[i] = k2[i];
      return;
    }
  }
  cnt1 = 0, cnt2 = 0;
  memset(k1, 0, sizeof(k1));
  memset(k2, 0, sizeof(k2));
  for (int i = 1; i <= n; ++i) {
    if (p[i] == 1)
      cnt1 += (k1[i] = (i == 5) ? 15 : 25);
    else
      cnt2 += (k2[i] = (i == 5) ? 15 : 25);
  }
  if (p[1]) {
    if (cnt2 + 23 <= b) {
      cnt2 += 23;
      k2[1] = 23;
      int now = min(a - cnt1, b - cnt2);
      cnt1 += now, cnt2 += now;
      k1[1] += now, k2[1] += now;
    }
  } else {
    if (cnt1 + 23 <= a) {
      cnt1 += 23;
      k1[1] = 23;
      int now = min(a - cnt1, b - cnt2);
      cnt1 += now, cnt2 += now;
      k1[1] += now, k2[1] += now;
    }
  }
  for (int i = 1; i <= n; ++i) {
    int k = (i == 5) ? 13 : 23;
    if (!p[i]) {
      if (k1[i]) continue;
      if (cnt1 + k > a)
        k1[i] = a - cnt1;
      else
        k1[i] = k;
      cnt1 += k1[i];
    } else {
      if (k2[i]) continue;
      if (cnt2 + k > b)
        k2[i] = b - cnt2;
      else
        k2[i] = k;
      cnt2 += k2[i];
    }
  }
  if (cnt1 != a || cnt2 != b) return;
  if (c1 - c2 > p1 - p2) {
    p1 = c1, p2 = c2;
    flag = 1;
    for (int i = 1; i <= n; ++i) ans1[i] = k1[i], ans2[i] = k2[i];
  }
}
void dfs(int x, int c1, int c2) {
  if (c1 >= 3 || c2 >= 3) {
    chk(x - 1, c1, c2);
    return;
  }
  p[x] = 1;
  dfs(x + 1, c1 + 1, c2);
  p[x] = 0;
  dfs(x + 1, c1, c2 + 1);
}
int main() {
  int T = read();
  while (T--) {
    a = read();
    b = read();
    flag = 0;
    p1 = 0, p2 = 5;
    dfs(1, 0, 0);
    if (!flag) {
      printf("Impossible\n");
      continue;
    }
    printf("%d:%d\n", p1, p2);
    for (int i = 1; i <= p1 + p2; ++i) printf("%d:%d ", ans1[i], ans2[i]);
    printf("\n");
  }
  return 0;
}