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 MAX_P = 201;
int dp[MAX_P][MAX_P][3][6];
pair<int, int> score[MAX_P][MAX_P][3][6];
int vis[MAX_P][MAX_P][3][6];
int matchPoint[2] = {25, 15};
int getRes(int a, int b, int lost, int matches) {
  if (matches == 0) {
    vis[a][b][lost][matches] = 1;
    dp[a][b][lost][matches] = a == 0 && b == 0;
    score[a][b][lost][matches] = make_pair(-1, -1);
    return dp[a][b][lost][matches];
  }
  if (a == 0 && b == 0) {
    return dp[a][b][lost][matches] = 0;
  }
  if (vis[a][b][lost][matches]) {
    return dp[a][b][lost][matches];
  }
  int res = 0;
  pair<int, int> validScore;
  if (matches == lost) {
    for (int first = 0; first <= a; ++first) {
      int toWin = matchPoint[matches == 5];
      int second = max(first + 2, toWin);
      if (second <= b && getRes(a - first, b - second, lost - 1, matches - 1)) {
        res = 1;
        validScore = make_pair(first, second);
        break;
      }
    }
  } else {
    for (int second = 0; second <= b; ++second) {
      int toWin = matchPoint[matches == 5];
      int first = max(second + 2, toWin);
      if (first <= a && getRes(a - first, b - second, lost, matches - 1)) {
        res = 1;
        validScore = make_pair(first, second);
        break;
      }
    }
  }
  score[a][b][lost][matches] = validScore;
  vis[a][b][lost][matches] = true;
  return dp[a][b][lost][matches] = res;
}
void solve() {
  int a, b;
  cin >> a >> b;
  for (int won = 3; won >= 0; --won) {
    for (int opp = 0; opp + won <= 5; ++opp) {
      if (won != 3 && opp != 3) {
        continue;
      }
      int first = a;
      int second = b;
      int lost = opp;
      int matches = won + opp;
      if (won < opp) {
        swap(first, second);
        lost = won;
      }
      if (getRes(first, second, lost, matches)) {
        vector<pair<int, int> > scores;
        int lim = matches;
        for (int i = 0; i < lim; ++i) {
          pair<int, int> s = score[first][second][lost][matches];
          scores.push_back(s);
          first -= s.first;
          second -= s.second;
          if (matches == lost) {
            lost--;
          }
          matches--;
        }
        cout << won << ":" << opp << "\n";
        for (int i = scores.size() - 1; i >= 0; --i) {
          auto s = scores[i];
          if (won < opp) {
            swap(s.first, s.second);
          }
          cout << s.first << ":" << s.second << " ";
        }
        cout << "\n";
        return;
      }
    }
  }
  cout << "Impossible\n";
}
int main() {
  ios::sync_with_stdio(false);
  for (int i = 0; i < MAX_P; ++i) {
    for (int j = 0; j < MAX_P; ++j) {
      for (int k = 0; k < 3; ++k) {
        for (int t = 0; t < 6; ++t) {
          vis[i][j][k][t] = 0;
        }
      }
    }
  }
  int T;
  cin >> T;
  for (int tc = 0; tc < T; ++tc) {
    solve();
  }
  return 0;
}