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 JAVA):

Solution:
import java.io.*;
import java.util.StringTokenizer;

public class Main {
    private final static int MAX_SCORE = 205;
    private final static int MAIN_END_SCORE = 25;
    private final static int SHORT_END_SCORE = 15;
    private FastScanner in;
    private PrintWriter out;

    public static void main(String[] args) {
        (new Main()).run();
    }

    private void run() {
        try {
            in = new FastScanner(System.in);
            out = new PrintWriter(System.out);
            solution();
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (in != null) {
                try {
                    in.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            if (out != null) out.close();
        }
    }

    private void solution() throws IOException {
        Boolean[][][][] initialData = getEmptyData();
        Set[][][][] setResults = getEmptySetResults();
        Set[][] cachedSets = getInitialCachedSets();
        int m = in.nextInt();
        while (m-- > 0) {
            int a = in.nextInt();
            int b = in.nextInt();
            out.println(getBestResult(a, b, initialData, setResults, cachedSets));
        }
    }

    private Set[][] getInitialCachedSets() {
        return new Set[MAX_SCORE][MAX_SCORE];
    }

    private String getBestResult(int x, int y, Boolean[][][][] data, Set[][][][] setResults, Set[][] cachedSets) {
        StringBuilder stringBuilder = new StringBuilder();
        if (isPossible(3, 0, x, y, data, setResults, cachedSets)) {
            stringBuilder.append("3:0\n");
            buildAllSets(stringBuilder, setResults, 3, 0, x, y);
            return stringBuilder.toString();
        }
        if (isPossible(3, 1, x, y, data, setResults, cachedSets)) {
            stringBuilder.append("3:1\n");
            buildAllSets(stringBuilder, setResults, 3, 1, x, y);
            return stringBuilder.toString();
        }
        if (isPossible(3, 2, x, y, data, setResults, cachedSets)) {
            stringBuilder.append("3:2\n");
            buildAllSets(stringBuilder, setResults, 3, 2, x, y);
            return stringBuilder.toString();
        }
        if (isPossible(2, 3, x, y, data, setResults, cachedSets)) {
            stringBuilder.append("2:3\n");
            buildAllSets(stringBuilder, setResults, 2, 3, x, y);
            return stringBuilder.toString();
        }
        if (isPossible(1, 3, x, y, data, setResults, cachedSets)) {
            stringBuilder.append("1:3\n");
            buildAllSets(stringBuilder, setResults, 1, 3, x, y);
            return stringBuilder.toString();
        }
        if (isPossible(0, 3, x, y, data, setResults, cachedSets)) {
            stringBuilder.append("0:3\n");
            buildAllSets(stringBuilder, setResults, 0, 3, x, y);
            return stringBuilder.toString();
        }
        return "Impossible";
    }

    private Boolean[][][][] getEmptyData() {
        Boolean[][][][] data = new Boolean[4][4][MAX_SCORE][MAX_SCORE];
        for (int i = 0; i < MAX_SCORE; i++) {
            for (int j = 0; j < MAX_SCORE; j++) {
                data[0][0][i][j] = false;
            }
        }
        data[0][0][0][0] = true;
        return data;
    }

    private Set[][][][] getEmptySetResults() {
        return new Set[4][4][MAX_SCORE][MAX_SCORE];
    }

    private boolean isPossible(int s, int t, int x, int y, Boolean[][][][] data, Set[][][][] sets, Set[][] cachedSets) {
        if (s < 0 || s > 3 || t < 0 || t > 3 || x < 0 || x >= MAX_SCORE || y < 0 || y >= MAX_SCORE) {
            return false;
        }
        if (data[s][t][x][y] == null) {
            int endScore = (s + t == 5) ? SHORT_END_SCORE : MAIN_END_SCORE;
            for (int i = endScore + 1; i < MAX_SCORE; i++) {
                if (t < 3 && isPossible(s - 1, t, x - i, y - i + 2, data, sets, cachedSets)) {
                    sets[s][t][x][y] = getCachedSet(i, i - 2, cachedSets);
                    return (data[s][t][x][y] = true);
                }
                if (s < 3 && isPossible(s, t - 1, x - i + 2, y - i, data, sets, cachedSets)) {
                    sets[s][t][x][y] = getCachedSet(i - 2, i, cachedSets);
                    return (data[s][t][x][y] = true);
                }
            }
            for (int i = 0; i <= endScore - 2; i++) {
                if (t < 3 && isPossible(s - 1, t, x - endScore, y - i, data, sets, cachedSets)) {
                    sets[s][t][x][y] = getCachedSet(endScore, i, cachedSets);
                    return (data[s][t][x][y] = true);
                }
                if (s < 3 && isPossible(s, t - 1, x - i, y - endScore, data, sets, cachedSets)) {
                    sets[s][t][x][y] = getCachedSet(i, endScore, cachedSets);
                    return (data[s][t][x][y] = true);
                }
            }
            return (data[s][t][x][y] = false);
        }
        return data[s][t][x][y];
    }

    private void buildAllSets(StringBuilder stringBuilder, Set[][][][] sets, int t, int s, int x, int y) {
        if (sets[t][s][x][y] != null) {
            int scoreA = sets[t][s][x][y].getScoreA();
            int scoreB = sets[t][s][x][y].getScoreB();
            int dt = scoreA > scoreB ? 1 : 0;
            int ds = 1 - dt;
            buildAllSets(stringBuilder, sets, t - dt, s - ds, x - scoreA, y - scoreB);
            stringBuilder.append(sets[t][s][x][y]);
        }
    }

    private Set getCachedSet(int scoreA, int scoreB, Set[][] cachedSets) {
        return cachedSets[scoreA][scoreB] == null
                ? cachedSets[scoreA][scoreB] = new Set(scoreA, scoreB)
                : cachedSets[scoreA][scoreB];
    }

    private class Set {
        int scoreA;
        int scoreB;

        public Set(int scoreA, int scoreB) {
            this.scoreA = scoreA;
            this.scoreB = scoreB;
        }

        public int getScoreA() {
            return scoreA;
        }

        public void setScoreA(int scoreA) {
            this.scoreA = scoreA;
        }

        public int getScoreB() {
            return scoreB;
        }

        public void setScoreB(int scoreB) {
            this.scoreB = scoreB;
        }

        @Override
        public String toString() {
            return scoreA + ":" + scoreB + " ";
        }
    }

    private class FastScanner {
        private BufferedReader bufferedReader;
        private StringTokenizer stringTokenizer;

        FastScanner(InputStream inputStream) {
            bufferedReader = new BufferedReader(new InputStreamReader(inputStream));
        }

        String next() throws IOException {
            while (stringTokenizer == null || !stringTokenizer.hasMoreTokens()) {
                String temp = bufferedReader.readLine();
                if (temp == null) {
                    return null;
                }
                stringTokenizer = new StringTokenizer(temp);
            }
            return stringTokenizer.nextToken();
        }

        String nextLine() throws IOException {
            return bufferedReader.readLine();
        }

        int nextInt() throws IOException {
            return Integer.parseInt(this.next());
        }

        long nextLong() throws IOException {
            return Long.parseLong(this.next());
        }

        double nextDouble() throws IOException {
            return Double.parseDouble(this.next());
        }

        void close() throws IOException {
            bufferedReader.close();
        }
    }
}