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;
long long MOD = 1000000007;
long double EPS = 1e-9;
template <class second, class T>
ostream& operator<<(ostream& os, const pair<second, T>& p) {
  return os << "(" << p.first << ", " << p.second << ")";
}
template <class T>
ostream& operator<<(ostream& os, const vector<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
ostream& operator<<(ostream& os, const unordered_set<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class second, class T>
ostream& operator<<(ostream& os, const unordered_map<second, T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
ostream& operator<<(ostream& os, const set<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
ostream& operator<<(ostream& os, const multiset<T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class second, class T>
ostream& operator<<(ostream& os, const map<second, T>& p) {
  os << "[ ";
  for (auto& it : p) os << it << " ";
  return os << "]";
}
template <class T>
void dbs(string str, T t) {
  cerr << str << " : " << t << "\n";
}
template <class T, class... second>
void dbs(string str, T t, second... s) {
  long long idx = str.find(',');
  cerr << str.substr(0, idx) << " : " << t << ",";
  dbs(str.substr(idx + 1), s...);
}
template <class T>
void prc(T a, T b) {
  cerr << "[";
  for (T i = a; i != b; ++i) {
    if (i != a) cerr << ", ";
    cerr << *i;
  }
  cerr << "]\n";
}
long long binpow(long long b, long long p, long long mod) {
  long long ans = 1;
  for (; p; p >>= 1) {
    if (p & 1) ans = ans * b % mod;
    b = b * b % mod;
  }
  return ans;
}
void pre() {}
int flag = 1;
void cc(pair<long long, long long> a) {
  if (flag)
    cout << a.first << ":" << a.second << " ";
  else
    cout << a.second << ":" << a.first << " ";
}
void printer(vector<pair<long long, long long> > arr) {
  if (arr.size() == 3) {
    if (flag)
      cout << "3:0\n";
    else
      cout << "0:3\n";
    for (long long i = 0; i < 3; ++i) {
      cc(arr[i]);
    }
    cout << '\n';
  } else if (arr.size() == 4) {
    if (flag)
      cout << "3:1\n";
    else
      cout << "1:3\n";
    for (long long i = 0; i < 2; ++i) {
      cc(arr[i]);
    }
    cc(arr[3]);
    cc(arr[2]);
    cout << '\n';
  } else {
    if (flag)
      cout << "3:2\n";
    else
      cout << "2:3\n";
    for (long long i = 0; i < 2; ++i) {
      cc(arr[i]);
    }
    cc(arr[3]);
    cc(arr[4]);
    cc(arr[2]);
    cout << '\n';
  }
}
bool try3(long long n, long long m) {
  vector<pair<long long, long long> > arr(3);
  for (long long i = 0; i < 3; ++i) {
    arr[i] = make_pair(25, 0);
    n -= 25;
  }
  if (n < 0) return 0;
  if (n > m) {
    return 0;
  } else if (m > n) {
    for (long long i = 0; i < 3; ++i) {
      if (m - n == 0) break;
      arr[i].second += min(23LL, m - n);
      m -= min(m - n, 23LL);
    }
  }
  if (m != n)
    return 0;
  else {
    if (m && arr[0].second < 23LL) return 0;
    arr[0].first += n;
    arr[0].second += m;
    printer(arr);
    return 1;
  }
}
bool try4(long long n, long long m) {
  vector<pair<long long, long long> > arr(4);
  for (long long i = 0; i < 4; ++i) {
    arr[i] = make_pair(25, 0);
    n -= 25;
  }
  swap(arr[3].first, arr[3].second);
  n += 25;
  m -= 25;
  if (n < 0 || m < 0) return 0;
  if (n > m) {
    for (long long i = 3; i <= 3; ++i) {
      if (n - m == 0) break;
      arr[i].first += min(23LL, n - m);
      n -= min(n - m, 23LL);
    }
    if (m != n) return 0;
    while (arr[3].first < 23 && m) {
      arr[3].first++;
      m--;
      n--;
      arr[0].second++;
    }
    if (n && arr[3].first != 23LL) return 0;
    arr[3].first += n;
    arr[3].second += m;
    printer(arr);
    return 1;
  } else {
    for (long long i = 0; i <= 2; ++i) {
      if (n - m == 0) break;
      arr[i].second += min(23LL, m - n);
      m -= min(m - n, 23LL);
    }
    if (m != n) return 0;
    while (arr[0].second < 23 && n) {
      arr[0].second++;
      m--;
      n--;
      arr[3].first++;
    }
    if (m && arr[0].second < 23LL) return 0;
    arr[0].first += n;
    arr[0].second += m;
    printer(arr);
    return 1;
  }
}
bool try5(long long n, long long m) {
  vector<pair<long long, long long> > arr(5);
  for (long long i = 0; i < 2; ++i) {
    arr[i] = make_pair(25, 0);
    n -= 25;
  }
  for (long long i = 3; i <= 4; ++i) {
    arr[i] = make_pair(0, 25);
    m -= 25;
  }
  arr[2].first = 15;
  arr[2].second = 0;
  n -= 15;
  if (n < 0 || m < 0) return 0;
  if (n > m) {
    for (long long i = 3; i <= 4; ++i) {
      if (n - m == 0) break;
      arr[i].first += min(23LL, n - m);
      n -= min(n - m, 23LL);
    }
    if (m != n) return 0;
    while (arr[3].first < 23 && m) {
      arr[3].first++;
      m--;
      n--;
      arr[0].second++;
    }
    if (n && arr[3].first != 23LL) return 0;
    arr[3].first += n;
    arr[3].second += m;
    printer(arr);
    return 1;
  } else {
    for (long long i = 2; i <= 2; ++i) {
      if (m - n == 0) break;
      arr[i].second += min(13LL, m - n);
      m -= min(m - n, 13LL);
    }
    for (long long i = 0; i <= 1; ++i) {
      if (m - n == 0) break;
      arr[i].second += min(23LL, m - n);
      m -= min(m - n, 23LL);
    }
    if (m != n) return 0;
    while (arr[2].second < 13 && n) {
      arr[2].second++;
      m--;
      n--;
      arr[3].first++;
    }
    if (m && arr[2].second < 13LL) return 0;
    arr[2].first += n;
    arr[2].second += m;
    printer(arr);
    return 1;
  }
}
void solve() {
  long long n, m;
  cin >> n >> m;
  if (try3(n, m) || try4(n, m) || try5(n, m)) {
    return;
  }
  flag = 0;
  swap(n, m);
  if (try5(n, m) || try4(n, m) || try3(n, m)) {
  } else {
    cout << "Impossible\n";
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  pre();
  long long t = 1;
  cin >> t;
  for (long long i = 1; i <= t; i++) {
    solve();
    flag = 1;
  }
}