Problem: There are n cats in a line, labeled from 1 to n, with the i-th cat at position i. They are bored of gyrating in the same spot all day, so they want to reorder themselves such that no cat is in the same place as before. They are also lazy, so they want to minimize the total distance they move. Help them decide what cat should be at each location after the reordering.

For example, if there are 3 cats, this is a valid reordering: [3, 1, 2]. No cat is in its original position. The total distance the cats move is 1 + 1 + 2 = 4 as cat 1 moves one place to the right, cat 2 moves one place to the right, and cat 3 moves two places to the left.

Input

The first line contains a single integer t (1 ≤ t ≤ 100) — the number of test cases. Then t test cases follow.

The first and only line of each test case contains one integer n (2 ≤ n ≤ 100) — the number of cats.

It can be proven that under the constraints of the problem, an answer always exist. 

Output

Output t answers, one for each test case. Each answer consists of n integers — a permutation with the minimum total distance. If there are multiple answers, print any.

Example

Input


2
2
3


Output


2 1 
3 1 2 

Note

For the first test case, there is only one possible permutation that satisfies the conditions: [2, 1].

The second test case was described in the statement. Another possible answer is [2, 3, 1].

Solution (in JAVA):

Solution:

import java.io.*;
import java.lang.reflect.Array;
import java.util.*;

public class Main {
    public static void main(String[] args) throws IOException {
        OutputStream outputStream = System.out;
        PrintWriter out = new PrintWriter(outputStream);
        FastReader in = new FastReader();
        test a=new test();
        a.solve(in,out);
        out.close();
    }
}
class test{
    public void solve(FastReader in, PrintWriter out) {
        int t= in.nextInt();
        while(t-->0){
            int n = in.nextInt();
            int[] a = new int[n];
            for(int i=0;i<n;i++)
                a[i] = i+1;
            for(int i=0;i<n-1;i+=2){
                int tmp = a[i];
                a[i] = a[i+1];
                a[i+1] = tmp;
            }
            if(n%2==1){
                int tmp = a[n-1];
                a[n-1] = a[n-2];
                a[n-2] = tmp;
            }
            for(int i=0;i<n;i++)
                out.print(a[i]+" ");
            out.println();
        }
    }

//    int t  = in.nextInt();
//       while(t-->0){
//        int n = in.nextInt();
//        int[] a = new int[n];
//        for(int i=0;i<n;i++){
//            a[i] = in.nextInt();
//        }
//        int min = Integer.MAX_VALUE;
//        Arrays.sort(a);
//        int ind = 0;
//        for(int i=0;i<n-1;i++){
//            if(Math.abs(a[i+1]-a[i])<min){
//                min = Math.abs(a[i+1]-a[i]);
//                ind = i;
//            }
//        }
//        out.print(a[ind]+" ");
//        for(int i=ind+2;i<n;i++){
//            out.print(a[i]+" ");
//        }
//        for(int i=0;i<ind;i++){
//            out.print(a[i]+" ");
//        }
//        out.println(a[ind+1]);
//    }
 
    void printarr(int[] a){
        for(int i: a){
            System.out.println(i+" ");
        }
        System.out.println();
    }
    void factors(long n){
        int a=0;
        while(n%2==0){
            a++;
            n=n/2;
        }
        if(a>0){
            System.out.print(2+"^"+a+" ");
        }
        for(long i =3;i*i<=n;i+=2){
            if(n%i==0){
                int cnt =0;
                while(n%i==0){
                    cnt++;
                    n=n/i;
                }
                System.out.print(i+"^"+cnt+" ");
            }
        }
        if(n>1){
            System.out.print(n+"^"+1+" ");
        }
    }
    public boolean isPrime(long n){
        if(n==1 || n%2==0){
            return false;
        }
        for(long i=3;i*i<=n;i+=2){
            if(n%i==0)
                return false;
        }
        return true;
    }
    List<Integer> sieve(int n){
        int[] b = new int[n+1];
        Arrays.fill(b,0);
        b[0] = b[1] = 1;
        for(int i=2;i<=n;i++){
            if(b[i]==0){
                for(int j =2*i;j<=n;j+=i){
                    b[j] = 1;
                }
            }
        }
        List<Integer> l = new ArrayList<>();
        for(int i=0;i<b.length;i++){
            if(b[i]==0){
                l.add(i);
            }
        }
        return l;
    }
    List<Integer> segmentedSieve(long l , long r, List<Integer> prime){
        if(l==1)
            l++;
        int size = (int)(r-l+1);
        boolean[] b = new boolean[size];
        Arrays.fill(b,true);
        for(int i : prime){
            if(i*i<=r){
                int lim = (int)(l/i)*i;
                if(lim<l)
                    lim+=i;
                for(;lim<=r;lim+=i){
                    if (lim!=i)
                        b[(int)(lim-l)] = false;
                }
            }
        }
        List<Integer> list = new ArrayList<>();
        for (int i=0;i<b.length;i++){
            if(b[i]){
                list.add((int)(i+l));
            }
        }
        return list;
    }

    int gcd(int a, int b){
        if(b==0){
            return a;
        }
        return gcd(b,a%b);
    }
    int[] extendedGCD(int a, int b,int x,int y){
        if(b==0){
            return new int[]{1,0,a};
        }
        int x1=1,y1=1;
        int[] d = extendedGCD(b,a%b,x1,y1);
        y1 = d[1];
        x1 = d[0];
        d[0]=y1;
        d[1]=x1-y1*(a/b);
        return d;
    }

    public int BinarySearch(int[] a,int low,int high, int key){
        if(low>high){
            return -1;
        }
        int mid = low +(high-low)/2;
        if(key==a[mid]){
            return mid;
        }
        else if(key>a[mid]){
            return BinarySearch(a,mid+1,high,key);
        }
        else{
            return BinarySearch(a,low,mid-1,key);
        }
    }
}

class FastReader{
    BufferedReader br;
    StringTokenizer st;
    public FastReader(){

        br = new BufferedReader(new InputStreamReader(System.in));
    }
    String next(){
        while(st==null || !st.hasMoreElements()){
            try{
                st=new StringTokenizer(br.readLine());
            }
            catch(IOException e){
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }
    int nextInt(){
        return Integer.parseInt(next());
    }
    Long nextLong(){
        return Long.parseLong(next());
    }
    double nextDouble(){
        return Double.parseDouble(next());
    }
    String nextLine(){
        String str="";
        try{
            str=br.readLine();
        }
        catch(IOException e){
            e.printStackTrace();
        }
        return str;
    }
}