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 = 100005;
const int P = 1000000007;
const long long mod = P;
const int INF = 0x3f3f3f3f;
const long long LLINF = 0x3f3f3f3f3f3f3f3f;
const long double eps = 1e-8;
long long qmod(long long a, long long n, long long mod) {
  long long ans = 1;
  while (n) {
    assert(ans > 0);
    if (n & 1ll) ans = ans * a % mod;
    n >>= 1;
    a = a * a % mod;
  }
  return ans % mod;
}
int match1[201][201], match2[201][201];
struct node {
  int x, y, val;
};
struct Event {
  int x, y, winA, winB;
};
vector<pair<int, int> > q[201][201][4][4];
pair<int, int> p[201][201][4][4];
bool vis[201][201][4][4];
int main() {
  time_t t1 = clock();
  for (int i = 0; i <= 200; ++i) {
    for (int j = 0; j <= 200; ++j) {
      if (i < 25 && j < 25)
        match1[i][j] = 0;
      else if (i == 25 && i - j >= 2)
        match1[i][j] = 1;
      else if (j == 25 && j - i >= 2)
        match1[i][j] = -1;
      else if (i > 25 && i - j == 2)
        match1[i][j] = 1;
      else if (j > 25 && j - i == 2)
        match1[i][j] = -1;
      if (i < 15 && j < 15)
        match2[i][j] = 0;
      else if (i == 15 && i - j >= 2)
        match2[i][j] = 1;
      else if (j == 15 && j - i >= 2)
        match2[i][j] = -1;
      else if (i > 15 && i - j == 2)
        match2[i][j] = 1;
      else if (j > 15 && j - i == 2)
        match2[i][j] = -1;
    }
  }
  vector<node> ma1, ma2;
  vector<Event> ma3, ma4;
  for (int i = 0; i <= 200; ++i)
    for (int j = 0; j <= 200; ++j) {
      if (match1[i][j]) ma1.push_back({i, j, match1[i][j]});
      if (match2[i][j]) ma2.push_back({i, j, match2[i][j]});
    }
  for (auto &a : ma1) {
    for (auto &b : ma1) {
      if (a.x + b.x > 200) continue;
      if (a.y + b.y > 200) continue;
      for (auto &c : ma1) {
        int xx = a.x + b.x + c.x;
        int yy = a.y + b.y + c.y;
        if (xx > 200 || yy > 200) continue;
        int winA = (a.val > 0) + (b.val > 0) + (c.val > 0);
        int winB = (a.val < 0) + (b.val < 0) + (c.val < 0);
        if (vis[xx][yy][winA][winB]) continue;
        q[xx][yy][winA][winB].push_back(make_pair(a.x, a.y));
        q[xx][yy][winA][winB].push_back(make_pair(b.x, b.y));
        q[xx][yy][winA][winB].push_back(make_pair(c.x, c.y));
        vis[xx][yy][winA][winB] = 1;
        p[xx][yy][winA][winB] = make_pair(xx, yy);
      }
    }
  }
  for (int i = 0; i <= 200; ++i) {
    for (int j = 0; j <= 200; ++j) {
      if (q[i][j][2][1].size())
        ma3.push_back({p[i][j][2][1].first, p[i][j][2][1].second, 2, 1});
      if (q[i][j][1][2].size())
        ma3.push_back({p[i][j][1][2].first, p[i][j][1][2].second, 1, 2});
    }
  }
  for (auto &a : ma3) {
    for (auto &b : ma1) {
      int xx = a.x + b.x;
      int yy = a.y + b.y;
      if (xx > 200 || yy > 200) continue;
      int winA = a.winA + (b.val > 0);
      int winB = a.winB + (b.val < 0);
      if (vis[xx][yy][winA][winB]) continue;
      q[xx][yy][winA][winB] = q[a.x][a.y][a.winA][a.winB];
      q[xx][yy][winA][winB].push_back(make_pair(b.x, b.y));
      p[xx][yy][winA][winB] = make_pair(xx, yy);
      vis[xx][yy][winA][winB] = 1;
    }
  }
  for (int i = 0; i <= 200; ++i) {
    for (int j = 0; j <= 200; ++j) {
      if (q[i][j][2][2].size())
        ma4.push_back({p[i][j][2][2].first, p[i][j][2][2].second, 2, 2});
    }
  }
  for (auto &a : ma4) {
    for (auto &b : ma2) {
      int xx = a.x + b.x;
      int yy = a.y + b.y;
      if (xx > 200 || yy > 200) continue;
      int winA = a.winA + (b.val > 0);
      int winB = a.winB + (b.val < 0);
      if (vis[xx][yy][winA][winB]) continue;
      q[xx][yy][winA][winB] = q[a.x][a.y][a.winA][a.winB];
      q[xx][yy][winA][winB].push_back(make_pair(b.x, b.y));
      vis[xx][yy][winA][winB] = 1;
    }
  }
  time_t t2 = clock();
  int T;
  scanf("%d", &T);
  while (T--) {
    int a, b;
    scanf("%d%d", &a, &b);
    if (q[a][b][3][0].size()) {
      printf("3:0\n");
      for (int i = 0; i < q[a][b][3][0].size(); ++i)
        printf("%d:%d%c", q[a][b][3][0][i].first, q[a][b][3][0][i].second,
               " \n"[i == 2]);
    } else if (q[a][b][3][1].size()) {
      printf("3:1\n");
      for (int i = 0; i < q[a][b][3][1].size(); ++i)
        printf("%d:%d%c", q[a][b][3][1][i].first, q[a][b][3][1][i].second,
               " \n"[i == 3]);
    } else if (q[a][b][3][2].size()) {
      printf("3:2\n");
      for (int i = 0; i < q[a][b][3][2].size(); ++i)
        printf("%d:%d%c", q[a][b][3][2][i].first, q[a][b][3][2][i].second,
               " \n"[i == 4]);
    } else if (q[a][b][2][3].size()) {
      printf("2:3\n");
      for (int i = 0; i < q[a][b][2][3].size(); ++i)
        printf("%d:%d%c", q[a][b][2][3][i].first, q[a][b][2][3][i].second,
               " \n"[i == 4]);
    } else if (q[a][b][1][3].size()) {
      printf("1:3\n");
      for (int i = 0; i < q[a][b][1][3].size(); ++i)
        printf("%d:%d%c", q[a][b][1][3][i].first, q[a][b][1][3][i].second,
               " \n"[i == 3]);
    } else if (q[a][b][0][3].size()) {
      printf("0:3\n");
      for (int i = 0; i < q[a][b][0][3].size(); ++i)
        printf("%d:%d%c", q[a][b][0][3][i].first, q[a][b][0][3][i].second,
               " \n"[i == 2]);
    } else {
      printf("Impossible\n");
    }
  }
  return 0;
}