#include <bits/stdc++.h>
using namespace std;
int t, a, b;
int main() {
  cin >> t;
  while (t--) {
    cin >> a >> b;
    bool p = 0;
    for (int i = 0; i <= 23; i++) {
      if (p) break;
      for (int j = 0; j <= 23; j++) {
        int x = a - 50, y = b - i - j;
        if ((x == 25 && y <= 23 && y >= 0) || (x > 25 && y == x - 2)) {
          cout << "3:0" << endl;
          cout << "25:" << i << " "
               << "25:" << j << " " << x << ":" << y << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    for (int i = 0; i <= 46; i++) {
      if (p) break;
      for (int j = 0; j <= 23; j++) {
        int x = a - 50 - j, y = b - i - 25;
        int f = i / 2, s = i / 2;
        if (i % 2) s++;
        if ((x == 25 && y <= 23 && y >= 0) || (x > 25 && y == x - 2)) {
          cout << "3:1" << endl;
          cout << "25:" << f << " "
               << "25:" << s << " " << j << ":25 " << x << ":" << y << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    for (int i = 0; i <= 69; i++) {
      int x = a - 75, y = b - i;
      int f = i / 3, s = i / 3, tt = i / 3;
      if (i % 3 == 1) tt++;
      if (i % 3 == 2) s++, tt++;
      if ((y == 25 && x <= 23 && x >= 0) || (y > 25 && x == y - 2)) {
        cout << "3:1" << endl;
        cout << "25:" << f << " "
             << "25:" << s << " " << x << ":" << y << " 25:" << tt << endl;
        p = 1;
        break;
      }
    }
    if (p) continue;
    for (int i = 0; i <= 46; i++) {
      if (p) break;
      for (int j = 0; j <= 46; j++) {
        int x = a - 50 - j, y = b - i - 50;
        int f = i / 2, s = i / 2;
        if (i % 2) s++;
        int ff = j / 2, ss = j / 2;
        if (j % 2) ss++;
        if ((x == 15 && y <= 13 && y >= 0) || (x > 15 && y == x - 2)) {
          cout << "3:2" << endl;
          cout << "25:" << f << " "
               << "25:" << s << " " << ff << ":25 " << ss << ":25 " << x << ":"
               << y << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    for (int i = 0; i <= 59; i++) {
      if (p) break;
      for (int j = 0; j <= 23; j++) {
        int x = a - 65 - j, y = b - i - 25;
        int tt = min(i, 13);
        int f = (i - tt) / 2, s = (i - tt) / 2;
        if ((i - tt) % 2) s++;
        if ((y == 25 && x <= 23 && x >= 0) || (y > 25 && x == y - 2)) {
          cout << "3:2" << endl;
          cout << j << ":25 " << x << ":" << y << " 25:" << f << " 25:" << s
               << " "
               << "15:" << tt << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    swap(a, b);
    for (int i = 0; i <= 46; i++) {
      if (p) break;
      for (int j = 0; j <= 46; j++) {
        int x = a - 50 - j, y = b - i - 50;
        int f = i / 2, s = i / 2;
        if (i % 2) s++;
        int ff = j / 2, ss = j / 2;
        if (j % 2) ss++;
        if ((x == 15 && y <= 13 && y >= 0) || (x > 15 && y == x - 2)) {
          cout << "2:3" << endl;
          cout << "25:" << ff << " "
               << "25:" << ss << " " << f << ":25 " << s << ":25 " << y << ":"
               << x << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    for (int i = 0; i <= 59; i++) {
      if (p) break;
      for (int j = 0; j <= 23; j++) {
        int x = a - 65 - j, y = b - i - 25;
        int tt = min(i, 13);
        int f = (i - tt) / 2, s = (i - tt) / 2;
        if ((i - tt) % 2) s++;
        if ((y == 25 && x <= 23 && x >= 0) || (y > 25 && x == y - 2)) {
          cout << "2:3" << endl;
          cout << f << ":25 " << s << ":25 "
               << "25:" << j << " " << y << ":" << x << " " << tt << ":15"
               << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    for (int i = 0; i <= 46; i++) {
      if (p) break;
      for (int j = 0; j <= 23; j++) {
        int x = a - 50 - j, y = b - i - 25;
        int f = i / 2, s = i / 2;
        if (i % 2) s++;
        if ((x == 25 && y <= 23 && y >= 0) || (x > 25 && y == x - 2)) {
          cout << "1:3" << endl;
          cout << "25:" << j << " " << f << ":25 " << s << ":25 " << y << ":"
               << x << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    for (int i = 0; i <= 69; i++) {
      int x = a - 75, y = b - i;
      int f = i / 3, s = i / 3, tt = i / 3;
      if (i % 3 == 1) tt++;
      if (i % 3 == 2) s++, tt++;
      if ((y == 25 && x <= 23 && x >= 0) || (y > 25 && x == y - 2)) {
        cout << "1:3" << endl;
        cout << f << ":25 " << s << ":25 " << y << ":" << x << " " << tt
             << ":25" << endl;
        p = 1;
        break;
      }
    }
    if (p) continue;
    for (int i = 0; i <= 23; i++) {
      if (p) break;
      for (int j = 0; j <= 23; j++) {
        int x = a - 50, y = b - i - j;
        if ((x == 25 && y <= 23 && y >= 0) || (x > 25 && y == x - 2)) {
          cout << "0:3" << endl;
          cout << i << ":25 " << j << ":25 " << y << ":" << x << endl;
          p = 1;
          break;
        }
      }
    }
    if (p) continue;
    cout << "Impossible" << endl;
  }
}
