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;
struct res {
  pair<int, int> r;
  vector<pair<int, int> > prev;
  res(int a, int b, vector<pair<int, int> > prev1) {
    r = make_pair(a, b);
    prev = prev1;
  }
};
bool compare(res a, res b) { return a.r < b.r; }
vector<pair<int, int> > sumv(vector<pair<int, int> >& a,
                             vector<pair<int, int> >& b) {
  vector<pair<int, int> > ans = a;
  for (pair<int, int> i : b) ans.push_back(i);
  return ans;
}
vector<res> mul(vector<res>& a, vector<res>& b) {
  set<pair<int, int> > dp;
  vector<res> ans;
  for (int i = 0; i < a.size(); ++i)
    for (int j = 0; j < b.size(); ++j) {
      pair<int, int> s = {a[i].r.first + b[j].r.first,
                          a[i].r.second + b[j].r.second};
      if (s.first > 200 || s.second > 200 || dp.count(s)) continue;
      vector<pair<int, int> > prev = sumv(a[i].prev, b[j].prev);
      ans.push_back({s.first, s.second, prev});
      dp.insert(s);
    }
  return ans;
}
vector<pair<int, int> > conv(vector<pair<int, int> >& a) {
  vector<pair<int, int> > ans = a;
  for (int i = 0; i < a.size(); ++i) swap(ans[i].first, ans[i].second);
  return ans;
}
vector<res> convert(vector<res> a) {
  for (int i = 0; i < a.size(); ++i) {
    swap(a[i].r.first, a[i].r.second);
    for (int j = 0; j < a[i].prev.size(); ++j)
      swap(a[i].prev[j].first, a[i].prev[j].second);
  }
  return a;
}
int b_s(vector<res>& a, pair<int, int> res) {
  int l = 0, r = a.size() - 1;
  while (r - l > 0) {
    int m = l + (r - l) / 2;
    if (res > a[m].r) {
      l = m + 1;
    } else
      r = m;
    if (a[r].r == res) return r;
  }
  return -1;
}
vector<res> b25, cb25, b15, b50, itog3, itog4, itog5;
pair<vector<pair<int, int> >, pair<int, int> > solve(int a, int b) {
  int ind1 = b_s(itog3, make_pair(a, b));
  int ind2 = b_s(itog4, make_pair(a, b));
  int ind3 = b_s(itog5, make_pair(a, b));
  if (ind3 != -1) {
    vector<pair<int, int> > answer = itog5[ind3].prev;
    return {conv(answer), {2, 3}};
  }
  if (ind2 != -1) {
    vector<pair<int, int> > answer = itog4[ind2].prev;
    swap(answer[0], answer.back());
    return {conv(answer), {1, 3}};
  }
  if (ind1 != -1) {
    vector<pair<int, int> > answer = itog3[ind1].prev;
    return make_pair(conv(answer), make_pair(0, 3));
  }
  return {{}, {-1, -1}};
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  for (int k = 0; k <= 23; ++k) b25.push_back({25, k, {make_pair(25, k)}});
  for (int p = 26; p <= 150; ++p)
    b25.push_back({p, p - 2, {make_pair(p, p - 2)}});
  for (int k = 0; k <= 13; ++k) b15.push_back({15, k, {make_pair(15, k)}});
  for (int p = 16; p <= 150; ++p)
    b15.push_back({p, p - 2, {make_pair(p, p - 2)}});
  b50 = mul(b25, b25);
  itog3 = mul(b50, b25);
  cb25 = convert(b25);
  vector<res> cb50 = convert(b50);
  itog4 = mul(itog3, cb25);
  vector<res> b100 = mul(b50, cb50);
  itog5 = mul(b100, b15);
  sort(itog3.begin(), itog3.end(), compare);
  sort(itog4.begin(), itog4.end(), compare);
  sort(itog5.begin(), itog5.end(), compare);
  int t;
  cin >> t;
  for (int _ = 0; _ < t; ++_) {
    int a, b;
    cin >> a >> b;
    bool f = false;
    int ind1 = b_s(itog3, make_pair(a, b));
    int ind2 = b_s(itog4, make_pair(a, b));
    int ind3 = b_s(itog5, make_pair(a, b));
    if (ind1 != -1) {
      vector<pair<int, int> > answer = itog3[ind1].prev;
      cout << "3:0" << endl;
      for (pair<int, int> p : answer) cout << p.first << ':' << p.second << ' ';
      cout << endl;
      continue;
    }
    if (ind2 != -1) {
      vector<pair<int, int> > answer = itog4[ind2].prev;
      swap(answer[0], answer.back());
      cout << "3:1" << endl;
      for (pair<int, int> p : answer) cout << p.first << ':' << p.second << ' ';
      cout << endl;
      continue;
    }
    if (ind3 != -1) {
      vector<pair<int, int> > answer = itog5[ind3].prev;
      cout << "3:2" << endl;
      for (pair<int, int> p : answer) cout << p.first << ':' << p.second << ' ';
      cout << endl;
      continue;
    }
    pair<vector<pair<int, int> >, pair<int, int> > answww = solve(b, a);
    if (answww.second.first == -1) {
      cout << "Impossible" << endl;
      continue;
    } else {
      cout << answww.second.first << ':' << answww.second.second << endl;
      for (pair<int, int> jj : answww.first)
        cout << jj.first << ':' << jj.second << ' ';
      cout << endl;
    }
  }
}