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;
template <class T>
void _R(T &x) {
  cin >> x;
}
void _R(int &x) { scanf("%d", &x); }
void _R(long long &x) { scanf("%lld", &x); }
void _R(double &x) { scanf("%lf", &x); }
void _R(char &x) { scanf(" %c", &x); }
void _R(char *x) { scanf("%s", x); }
void R() {}
template <class T, class... U>
void R(T &head, U &...tail) {
  _R(head);
  R(tail...);
}
template <class T>
void _W(const T &x) {
  cout << x;
}
void _W(const int &x) { printf("%d", x); }
void _W(const long long &x) { printf("%lld", x); }
void _W(const double &x) { printf("%.16f", x); }
void _W(const char &x) { putchar(x); }
void _W(const char *x) { printf("%s", x); }
template <class T, class U>
void _W(const pair<T, U> &x) {
  _W(x.first);
  putchar(' ');
  _W(x.second);
}
template <class T>
void _W(const vector<T> &x) {
  for (auto i = x.begin(); i != x.end(); _W(*i++))
    if (i != x.cbegin()) putchar(' ');
}
void W() {}
template <class T, class... U>
void W(const T &head, const U &...tail) {
  _W(head);
  putchar(sizeof...(tail) ? ' ' : '\n');
  W(tail...);
}
int MOD = 1e9 + 7;
void ADD(long long &x, long long v) {
  x = (x + v) % MOD;
  if (x < 0) x += MOD;
}
const int SIZE = 1e6 + 10;
int max_score[5] = {25, 25, 25, 25, 15};
pair<int, int> dp[6][4][201][201];
void pre() {
  for (int i = 0; i < (6); ++i)
    for (int win = 0; win < (4); ++win)
      for (int j = 0; j < (201); ++j)
        for (int k = 0; k < (201); ++k) dp[i][win][j][k].first = -1;
  dp[0][0][0][0] = {0, 0};
  for (int i = 0; i < (5); ++i)
    for (int win = 0; win < (4); ++win)
      for (int j = 0; j < (201); ++j)
        for (int k = 0; k < (201); ++k) {
          if (dp[i][win][j][k].first == -1) continue;
          if (win == 3 || i - win == 3) continue;
          if (i - win < 3 && k + max_score[i] <= 200) {
            for (int score = (0); score <= (max_score[i] - 2); ++score) {
              if (j + score <= 200) {
                dp[i + 1][win][j + score][k + max_score[i]] = {score,
                                                               max_score[i]};
              }
            }
          }
          if (win < 3 && j + max_score[i] <= 200) {
            for (int score = (0); score <= (max_score[i] - 2); ++score) {
              if (k + score <= 200) {
                dp[i + 1][win + 1][j + max_score[i]][k + score] = {max_score[i],
                                                                   score};
              }
            }
          }
          for (int score = (max_score[i] + 1); score <= (200); ++score) {
            int good = 0;
            if (i - win < 3 && j + score - 2 <= 200 && k + score <= 200) {
              good = 1;
              dp[i + 1][win][j + score - 2][k + score] = {score - 2, score};
            }
            if (win < 3 && j + score <= 200 && k + score - 2 <= 200) {
              good = 1;
              dp[i + 1][win + 1][j + score][k + score - 2] = {score, score - 2};
            }
            if (!good) break;
          }
        }
}
void print(int i, int win, int j, int k) {
  printf("%d:%d\n", win, i - win);
  vector<pair<int, int> > AA;
  while (i) {
    AA.push_back(dp[i][win][j][k]);
    i--;
    if (AA.back().first > AA.back().second) win--;
    j -= AA.back().first;
    k -= AA.back().second;
  }
  reverse((AA).begin(), (AA).end());
  for (int i = 0; i < (((int)(AA).size())); ++i) {
    if (i) printf(" ");
    printf("%d:%d", AA[i].first, AA[i].second);
  }
  W("");
}
void solve(int a, int b) {
  for (int lose = (0); lose <= (2); ++lose) {
    if (dp[lose + 3][3][a][b].first != -1) {
      print(lose + 3, 3, a, b);
      return;
    }
  }
  for (int win = 2; win >= 0; win--) {
    if (dp[win + 3][win][a][b].first != -1) {
      print(win + 3, win, a, b);
      return;
    }
  }
  W("Impossible");
}
int main() {
  pre();
  int ___T;
  scanf("%d", &___T);
  for (int cs = 1; cs <= ___T; cs++) {
    int a, b;
    R(a, b);
    solve(a, b);
  }
  return 0;
}