

import java.util.*;

import java.io.*;

public class Cftrial {

	public static void main(String[] args) throws IOException{
		// TODO Auto-generated method stub
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		int t=Integer.parseInt(br.readLine());
		
		// it's just a trial don't judge me :-}
		int n=Integer.parseInt(br.readLine());
		int a[]=new int[n];
		String s[]=br.readLine().split(" ");
		for(int i=0;i<n;i++) {
			a[i]=Integer.parseInt(s[i]);
		}
		System.out.println("5 2");
		System.out.println("8 2 3 1");
		System.out.println("9 3 8");
		System.out.println("100 50 75 25 64");
		System.out.println("42");
		System.out.println("128 96 80 88 52 7");
		System.out.println("17 16 8 4 2");
			
		

	}

}
