#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-8;
const double pi = acos(-1.0);
template <class T>
int chkmin(T &a, T b) {
  return a > b ? a = b, 1 : 0;
}
template <class T>
int chkmax(T &a, T b) {
  return a < b ? a = b, 1 : 0;
}
template <class T>
T sqr(T a) {
  return a * a;
}
template <class T>
T mmin(T a, T b) {
  return a < b ? a : b;
}
template <class T>
T mmax(T a, T b) {
  return a > b ? a : b;
}
template <class T>
T aabs(T a) {
  return a < 0 ? -a : a;
}
template <class T>
int dcmp(T a, T b) {
  return a > b;
}
template <int *a>
int cmp_a(int first, int second) {
  return a[first] < a[second];
}
namespace io {
const int SIZE = (1 << 21) + 1;
char ibuf[SIZE], *iS, *iT, obuf[SIZE], *oS = obuf, *oT = oS + SIZE - 1, c,
                                       qu[55];
int f, qr;
inline void flush() {
  fwrite(obuf, 1, oS - obuf, stdout);
  oS = obuf;
}
inline void putc(char first) {
  *oS++ = first;
  if (oS == oT) flush();
}
inline bool read(signed &first) {
  for (f = 1, c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                              (iS == iT ? EOF : *iS++))
                            : *iS++);
       c < '0' || c > '9';
       c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                       (iS == iT ? EOF : *iS++))
                     : *iS++))
    if (c == '-')
      f = -1;
    else if (c == EOF)
      return 0;
  for (first = 0; c <= '9' && c >= '0';
       c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                       (iS == iT ? EOF : *iS++))
                     : *iS++))
    first = first * 10 + (c & 15);
  first *= f;
  return 1;
}
inline bool read(long long &first) {
  for (f = 1, c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                              (iS == iT ? EOF : *iS++))
                            : *iS++);
       c < '0' || c > '9';
       c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                       (iS == iT ? EOF : *iS++))
                     : *iS++))
    if (c == '-')
      f = -1;
    else if (c == EOF)
      return 0;
  for (first = 0; c <= '9' && c >= '0';
       c = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                       (iS == iT ? EOF : *iS++))
                     : *iS++))
    first = first * 10 + (c & 15);
  first *= f;
  return 1;
}
inline bool read(char &first) {
  first = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                       (iS == iT ? EOF : *iS++))
                    : *iS++);
  return first != EOF;
}
inline bool read(char *first) {
  while ((*first = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                                (iS == iT ? EOF : *iS++))
                             : *iS++)) == '\n' ||
         *first == ' ' || *first == '\r')
    if (*first == EOF) return 0;
  while (!(*first == '\n' || *first == ' ' || *first == '\r'))
    *(++first) = (iS == iT ? (iT = (iS = ibuf) + fread(ibuf, 1, SIZE, stdin),
                              (iS == iT ? EOF : *iS++))
                           : *iS++);
  *first = 0;
  return 1;
}
template <typename A, typename... B>
inline bool read(A &first, B &...second) {
  return read(first) && read(second...);
}
inline bool write(signed first) {
  if (!first) putc('0');
  if (first < 0) putc('-'), first = -first;
  while (first) qu[++qr] = first % 10 + '0', first /= 10;
  while (qr) putc(qu[qr--]);
  return 0;
}
inline bool write(long long first) {
  if (!first) putc('0');
  if (first < 0) putc('-'), first = -first;
  while (first) qu[++qr] = first % 10 + '0', first /= 10;
  while (qr) putc(qu[qr--]);
  return 0;
}
inline bool write(char first) {
  putc(first);
  return 0;
}
inline bool write(const char *first) {
  while (*first) {
    putc(*first);
    ++first;
  }
  return 0;
}
inline bool write(char *first) {
  while (*first) {
    putc(*first);
    ++first;
  }
  return 0;
}
template <typename A, typename... B>
inline bool write(A first, B... second) {
  return write(first) || write(second...);
}
struct Flusher_ {
  ~Flusher_() { flush(); }
} io_flusher_;
}  // namespace io
using io ::putc;
using io ::read;
using io ::write;
int f[205][205][4][4], lsx[205][205][4][4], lsy[205][205][4][4];
void putans(int a, int b, int c, int d) {
  if (c || d) {
    putans(a - lsx[a][b][c][d], b - lsy[a][b][c][d], c >= d ? c - 1 : c,
           c >= d ? d : d - 1);
    write(lsx[a][b][c][d], ':', lsy[a][b][c][d], c + d == 1 ? '\n' : ' ');
  }
}
int main() {
  int t, a, b;
  read(t);
  f[0][0][0][0] = 1;
  int mx;
  for (int i = 0; i <= 200; ++i)
    for (int j = 0; j <= 200; ++j) {
      for (int k = 0; k <= 3; ++k)
        for (int l = 0; l <= 3; ++l) {
          if ((k == 3 && l == 3) || (!k && !l)) continue;
          if (k >= l) {
            if (k == 3 && l == 2)
              mx = 15;
            else
              mx = 25;
            if (i < mx) continue;
            for (int w = 0; w <= mx - 2; ++w)
              if (j >= w && f[i - mx][j - w][k - 1][l]) {
                lsx[i][j][k][l] = mx;
                lsy[i][j][k][l] = w;
                f[i][j][k][l] = 1;
              }
            for (int w = mx + 1; w <= i; ++w)
              if (j >= w - 2 && f[i - w][j - w + 2][k - 1][l]) {
                lsx[i][j][k][l] = w;
                lsy[i][j][k][l] = w - 2;
                f[i][j][k][l] = 1;
              }
          } else {
            if (k == 2 && l == 3)
              mx = 15;
            else
              mx = 25;
            if (j < mx) continue;
            for (int w = 0; w <= mx - 2; ++w)
              if (i >= w && f[i - w][j - mx][k][l - 1]) {
                lsx[i][j][k][l] = w;
                lsy[i][j][k][l] = mx;
                f[i][j][k][l] = 1;
              }
            for (int w = mx + 1; w <= j; ++w)
              if (i >= w - 2 && f[i - w + 2][j - w][k][l - 1]) {
                lsx[i][j][k][l] = w - 2;
                lsy[i][j][k][l] = w;
                f[i][j][k][l] = 1;
              }
          }
        }
    }
  for (; t; --t) {
    read(a, b);
    bool gg = 1;
    for (int i = 0; i <= 2 && gg; ++i) {
      if (f[a][b][3][i]) {
        write(3, ':', i, '\n');
        putans(a, b, 3, i);
        gg = 0;
      }
    }
    for (int i = 2; i >= 0 && gg; --i) {
      if (f[a][b][i][3]) {
        write(i, ':', 3, '\n');
        putans(a, b, i, 3);
        gg = 0;
      }
    }
    if (gg) write("Impossible\n");
  }
  return 0;
}
