Problem: You are given two positive integers n (1 ≤ n ≤ 10^9) and k (1 ≤ k ≤ 100). Represent the number n as the sum of k positive integers of the same parity (have the same remainder when divided by 2).

In other words, find a_1, a_2, …, a_k such that all a_i>0, n = a_1 + a_2 + … + a_k and either all a_i are even or all a_i are odd at the same time.

If such a representation does not exist, then report it.

Input

The first line contains an integer t (1 ≤ t ≤ 1000) — the number of test cases in the input. Next, t test cases are given, one per line.

Each test case is two positive integers n (1 ≤ n ≤ 10^9) and k (1 ≤ k ≤ 100).

Output

For each test case print:

  * YES and the required values a_i, if the answer exists (if there are several answers, print any of them); 
  * NO if the answer does not exist. 



The letters in the words YES and NO can be printed in any case.

Example

Input


8
10 3
100 4
8 7
97 2
8 8
3 10
5 3
1000000000 9


Output


YES
4 2 4
YES
55 5 5 35
NO
NO
YES
1 1 1 1 1 1 1 1
NO
YES
3 1 1
YES
111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111110 111111120

Solution (in JAVA):

Solution:
import java.io.*;
import java.util.*;
public class code {
	static PrintWriter pw;
	static boolean[][] visit;
	static char[][] adj;
//	static void dfs(int i, long c) {
//		visit[i]=true;
//		max=Math.max(c, max);
//		for(Pair p: adj[i]) {
//			if(!visit[p.x-1]) {
//				dfs(p.x-1, c+1l*p.y);
//			}
//		}
//	}
//	static Queue<Integer> q;
//	static void bfs(int i) {
//		visit[i].x=true;
//		visit[i].n=0;
//		q.add(i);
//		while(!q.isEmpty()){
//			int u = q.poll();
//			for(int v : adj[u]){
//				if(!visit[v].x){
//					q.add(v);
//					visit[v].x = true;
//					visit[v].n=visit[u].n+1;
//				}
//			}
//		}
//	}
//	static void tpsort(int i) {
//		visit[i]=true;
//		for(int x: adj[i]) {
//			if(!visit[x-1]) {
//				tpsort(x-1);
//			}
//		}
//		sticks.add(i+1);
//	}
	static int max;
	static int[] dx= {1,-1,0,0};
	static int[] dy= {0,0,1,-1};
	static boolean valid(int i, int j) {
		return i<adj.length && i>=0 && j<adj.length && j>=0;
	}
	static void dfs(int i, int j) {
		visit[i][j]=true;
		max++;
		for(int k=0; k<4; k++) {
			if(valid(i+dx[k],j+dy[k]) && !visit[i+dx[k]][j+dy[k]] && (adj[i+dx[k]][j+dy[k]]=='x' || adj[i+dx[k]][j+dy[k]]=='@')) {
				dfs(i+dx[k],j+dy[k]);
			}
		}
	}
	public static boolean contain(String s) {
		for(int i=0; i<s.length(); i++)
			if(s.charAt(i)==' ')
				return true;
		return false;
	}
	public static double dist(Pair a, Pair b) {
		return Math.sqrt((a.x-b.x)*(a.x-b.x)+ (a.y-b.y)*(a.y-b.y));
	}
	public static boolean sign(int x) {
		return x>0;
	}
	static long ceildiv(long x,long y) {
		return x%y==0? x/y: x/y+1;
	}
	public static void main(String[] args) throws Exception {
		Scanner sc= new Scanner(System.in);
		pw = new PrintWriter(System.out);
		int t=sc.nextInt();
		while(t-->0) {
			int n=sc.nextInt(),k=sc.nextInt();
			if(n%2==1) {
				if(k%2==0 || k>n) {
					pw.println("NO");
				}else {
					pw.println("YES");
					for(int i=1; i<k; i++) {
						pw.print(1+" ");
					}
					pw.println(n-k+1);
				}
			}else {
				if(n-(k-1)*2>0 && (n-(k-1)*2)%2==0) {
					pw.println("YES");
					for(int i=1; i<k; i++) {
						pw.print(2+" ");
					}
					pw.println(n-2*k+2);
				}else if(k%2==0 && k<=n) {
					pw.println("YES");
					for(int i=1; i<k; i++) {
						pw.print(1+" ");
					}
					pw.println(n-k+1);
				}
				else {
					pw.println("NO");
				}
			}
		}
		pw.close();
	}
	static class Scanner {
		StringTokenizer st;
		BufferedReader br; 
		public Scanner(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}
 
		public Scanner(FileReader r) {
			br = new BufferedReader(r);
		}
 
		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}
 
		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}
 
		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}
 
		public String nextLine() throws IOException {
			return br.readLine();
		}
 
		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}
 
		public int[] nextArr(int n) throws IOException {
			int[] arr = new int[n];
			for (int i = 0; i < arr.length; i++)
				arr[i] = nextInt();
			return arr;
		}
		public Integer[] nextsort(int n) throws IOException{
			Integer[] arr=new Integer[n];
			for(int i=0; i<n; i++) 
				arr[i]=nextInt();
			return arr;
		}
		public boolean ready() throws IOException {
			return br.ready();
		}
	}
	static class Pair implements Comparable<Pair>{
		int x;
		int y;
		public Pair(int a, int b) {
			this.x=a;
			this.y=b;
		}
		public int hashCode() {
			return this.x*10000+this.y/2;
		}
		public int compareTo(Pair other) {
			if(this.x!=other.x)
				return this.x-other.x;
			else {
				return this.y-other.y;
			}
		}
		public boolean equals(Object obj) {
			if (obj == null) {
	            return false;
	        }
	        if (this.getClass() != obj.getClass()) {
	            return false;
	        }
	        Pair p=(Pair)obj;
	        return this.x==p.x && this.y==p.y;
		}
	}
	static class visit{
		boolean x;
		int n;
		public visit(){
			this.x=false;
			this.n=-1;
		}
		public int compareTo(visit other) {
			return this.n-other.n;
		}
	}
	static class Tuple implements Comparable<Tuple>{
		int x;
		int y;
		boolean d;
		public Tuple(int a, int b, boolean t) {
			this.x=a;
			this.y=b;
			this.d=t;
		}
		public int compareTo(Tuple other) {
			if(this.d && !other.d) {
				return 1;
			}else if(!this.d && other.d) {
				return -1;
			}else {
				return this.y-other.y;
			}
		}
	}
}