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>
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
using namespace std;
const int MOD = 1e9 + 7;
const int oo = 1e9;
const long long INF = 1e18;
const long double EPS = 1e-11;
const int N = 1e5 + 2;
struct estado {
  int a, b, ant;
  bool ok;
  estado() : a(-1), b(-1), ant(-1), ok(false) {}
};
estado dp[201][201][33];
void setEstado(int x, int y, int z, int a, int b, int ant) {
  dp[x][y][z].a = a;
  dp[x][y][z].b = b;
  dp[x][y][z].ant = ant;
  dp[x][y][z].ok = true;
}
int check(int x, int y, int z) {
  if (dp[x][y][z].a != -1)
    return 1;
  else
    return -1;
}
vector<int> results;
void go() {
  for (int(i) = (0); (i) < (201); ++(i)) {
    for (int(j) = (0); (j) < (201); ++(j)) {
      if ((i == 25 && i - j >= 2) || (i > 25 && i - j == 2))
        setEstado(i, j, 10, i, j, -1);
    }
  }
  for (int(i) = (0); (i) < (201); ++(i)) {
    for (int(j) = (0); (j) < (201); ++(j)) {
      for (int(a) = (0); (a) < (201); ++(a)) {
        int scA, scB = i - a;
        if (a <= 23) {
          scA = j - 25;
          if (scA < 0 || scB < 0) continue;
          int ant = 10;
          if (check(scA, scB, ant) != -1) setEstado(j, i, 20, 25, a, ant);
        } else {
          scA = j - (a + 2);
          if (scA < 0 || scB < 0) continue;
          int ant = 10;
          if (check(scA, scB, ant) != -1) setEstado(j, i, 20, a + 2, a, ant);
        }
      }
    }
  }
  for (int(i) = (0); (i) < (201); ++(i)) {
    for (int(j) = (0); (j) < (201); ++(j)) {
      for (int(a) = (0); (a) < (201); ++(a)) {
        int scA, scB = i - a;
        if (a <= 23) {
          scA = j - 25;
          if (scA < 0 || scB < 0) continue;
          int ant = 20;
          if (check(scA, scB, ant) != -1) setEstado(j, i, 30, 25, a, ant);
        } else {
          scA = j - (a + 2);
          if (scA < 0 || scB < 0) continue;
          int ant = 20;
          if (check(scA, scB, ant) != -1) setEstado(j, i, 30, a + 2, a, ant);
        }
      }
    }
  }
  results.push_back(11);
  results.push_back(21);
  results.push_back(31);
  results.push_back(22);
  for (auto res : results) {
    if (res % 10 == 0) continue;
    for (int(i) = (0); (i) < (201); ++(i)) {
      for (int(j) = (0); (j) < (201); ++(j)) {
        for (int(a) = (0); (a) < (201); ++(a)) {
          int scA = i - a, scB;
          if (a <= 23) {
            scB = j - 25;
            if (scA < 0 || scB < 0) continue;
            int ant = res - 1;
            if (check(scA, scB, ant) != -1) setEstado(i, j, res, a, 25, ant);
          } else {
            scB = j - (a + 2);
            if (scA < 0 || scB < 0) continue;
            int ant = res - 1;
            if (check(scA, scB, ant) != -1) setEstado(i, j, res, a, a + 2, ant);
          }
        }
      }
    }
  }
  int res = 32;
  for (int(i) = (0); (i) < (201); ++(i)) {
    for (int(j) = (0); (j) < (201); ++(j)) {
      for (int(a) = (0); (a) < (201); ++(a)) {
        int scA, scB = i - a;
        if (a <= 13) {
          scA = j - 15;
          if (scA < 0 || scB < 0) continue;
          int ant = 22;
          if (check(scA, scB, ant) != -1) setEstado(j, i, 32, 15, a, ant);
        } else {
          scA = j - (a + 2);
          if (scA < 0 || scB < 0) continue;
          int ant = 22;
          if (check(scA, scB, ant) != -1) setEstado(j, i, 32, a + 2, a, ant);
        }
      }
    }
  }
}
int vis[33];
bool cmp(int a, int b) {
  int r = a / 10, s = a % 10;
  int p = b / 10, q = b % 10;
  int y = r - s, z = p - q;
  return (y < z || (y == z && a < b));
}
void solve(int match, int a, int b, int volt) {
  int s1 = match / 10, s2 = match % 10;
  if (volt) swap(s1, s2);
  cout << s1 << ":" << s2 << endl;
  vector<pair<long long, long long> > ands;
  ands.clear();
  int flag = 0;
  pair<long long, long long> foo;
  foo.first = -1;
  foo.second = -1;
  while (1) {
    if (match == 32 && flag == 0) {
      foo.first = dp[a][b][match].a;
      foo.second = dp[a][b][match].b;
      flag = 1;
    } else
      ands.push_back({dp[a][b][match].a, dp[a][b][match].b});
    if (dp[a][b][match].ant == -1) break;
    int ant = dp[a][b][match].ant;
    int aa = a, bb = b;
    a -= dp[aa][bb][match].a;
    b -= dp[aa][bb][match].b;
    match = ant;
  }
  if (foo.first != -1) ands.push_back(foo);
  for (int(i) = (0); (i) < (((int)ands.size())); ++(i)) {
    pair<long long, long long> x = ands[i];
    if (volt) swap(x.first, x.second);
    cout << x.first << ":" << x.second;
    if (i == ((int)ands.size()) - 1)
      cout << endl;
    else
      cout << " ";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  go();
  vis[10] = vis[20] = vis[30] = vis[21] = vis[31] = vis[32] = 1;
  results.clear();
  results.push_back(31);
  results.push_back(32);
  results.push_back(13);
  results.push_back(23);
  results.push_back(30);
  results.push_back(3);
  sort((results).begin(), (results).end(), cmp);
  reverse((results).begin(), (results).end());
  int t;
  cin >> t;
  while (t--) {
    int a, b;
    cin >> a >> b;
    int bien = 0;
    for (auto res : results) {
      if (!vis[res]) {
        int res2 = (res % 10) * 10 + (res / 10);
        if (dp[b][a][res2].ok) {
          solve(res2, b, a, 1);
          bien++;
          break;
        }
      } else {
        if (dp[a][b][res].ok) {
          solve(res, a, b, 0);
          bien++;
          break;
        }
      }
    }
    if (!bien) {
      cout << "Impossible" << endl;
    }
  }
  return 0;
}