description: On the board, Bob wrote n positive integers in [base](https://en.wikipedia.org/wiki/Positional_notation#Base_of_the_numeral_system) 10 with sum s (i. e. in decimal numeral system). Alice sees the board, but accidentally interprets the numbers on the board as base-11 integers and adds them up (in base 11).
  
  What numbers should Bob write on the board, so Alice's sum is as large as possible?
  
  Input
  
  The input consists of multiple test cases. The first line contains an integer t (1 ≤ t ≤ 100) — the number of test cases. The description of the test cases follows.
  
  The only line of each test case contains two integers s and n (1 ≤ s ≤ 10^9; 1 ≤ n ≤ min(100, s)) — the sum and amount of numbers on the board, respectively. Numbers s and n are given in decimal notation (base 10).
  
  Output
  
  For each test case, output n positive integers — the numbers Bob should write on the board, so Alice's sum is as large as possible. If there are multiple answers, print any of them.
  
  Example
  
  Input
  
  
  6
  97 2
  17 1
  111 4
  100 2
  10 9
  999999 3
  
  
  Output
  
  
  70 27 
  17 
  3 4 100 4
  10 90
  1 1 2 1 1 1 1 1 1 
  999900 90 9
  
  Note
  
  In the first test case, 70_{10} + 27_{10} = 97_{10}, and Alice's sum is $$$70_{11} + 27_{11} = 97_{11} = 9 ⋅ 11 + 7 = 106_{10}. (Here x_b represents the number x in base b.) It can be shown that it is impossible for Alice to get a larger sum than 106_{10}$$$.
  
  In the second test case, Bob can only write a single number on the board, so he must write 17.
  
  In the third test case, 3_{10} + 4_{10} + 100_{10} + 4_{10} = 111_{10}, and Alice's sum is $$$3_{11} + 4_{11} + 100_{11} + 4_{11} = 110_{11} = 1 ⋅ 11^2 + 1 ⋅ 11 = 132_{10}. It can be shown that it is impossible for Alice to get a larger sum than 132_{10}$$$.
solution: import java.util.*;
  import java.io.*;
  
  public class D {
  
  	private static final FastScanner fs = new FastScanner();
  	private static final int MOD = 1000000007;
      public static long[] tens = new long[] {0,1,10,100,1000,10000,100000,1000000,10000000,100000000,1000000000,10000000000L};
  //	public static long[] tens = new long[] {0,1,10,19,100,199,1000,1999,10000,19999,
  //		100000,199999,1000000,1999999,10000000,19999999,100000000,199999999,1000000000,1999999999,10000000000L,19999999999L};
  	public static void main(String[] args) throws IOException {
  		int cases = fs.nextInt();
  		while (cases-- > 0)
  			solve();
  	}
  	static void solve() throws IOException {
  		int s = fs.nextInt();
  		int n = fs.nextInt();
  		long[] r = new long[n];
  		long[] maxes = new long[n];
  		for (int i = 0; i < n-1; i++) {
  			int max = s-(n-i-1);
  			maxes[i] = max;
  			if (max <= 0) r[i] = 1;
  			else {
  				for (int j = 1; j < tens.length; j++) {
  					if (tens[j]>max) {
  						r[i] = tens[j-1];
  						break;
  					}
  				}
  			}
  			s-=r[i];
  		}
  
  		r[n-1] =s;
  //		System.out.println(Arrays.toString(maxes));
  //		System.out.println(Arrays.toString(r));
  		for (long i : r) System.out.print(i + " ");
  		System.out.println();
  	}
  
  	private static class FastScanner
  	{
  		//I don't understand how this works lmao
  		private int BS = 1 << 16;
  		private char NC = (char) 0;
  		private byte[] buf = new byte[BS];
  		private int bId = 0, size = 0;
  		private char c = NC;
  		private double cnt = 1;
  		private BufferedInputStream in;
  
  		public FastScanner() {
  			in = new BufferedInputStream(System.in, BS);
  		}
  
  		public FastScanner(String s) {
  			try {
  				in = new BufferedInputStream(new FileInputStream(new File(s)), BS);
  			} catch (Exception e) {
  				in = new BufferedInputStream(System.in, BS);
  			}
  		}
  
  		private char getChar() {
  			while (bId == size) {
  				try {
  					size = in.read(buf);
  				} catch (Exception e) {
  					return NC;
  				}
  				if (size == -1) return NC;
  				bId = 0;
  			}
  			return (char) buf[bId++];
  		}
  
  		public int nextInt() {
  			return (int) nextLong();
  		}
  
  		public int[] nextInts(int N) {
  			int[] res = new int[N];
  			for (int i = 0; i < N; i++) {
  				res[i] = (int) nextLong();
  			}
  			return res;
  		}
  
  		public ArrayList<Integer> nextIntsArrayList(int N) {
  			ArrayList<Integer> res = new ArrayList<>(N);
  			for (int i = 0; i < N; i++) {
  				res.add((int) nextLong());
  			}
  			return res;
  		}
  
  		public long[] nextLongs(int N) {
  			long[] res = new long[N];
  			for (int i = 0; i < N; i++) {
  				res[i] = nextLong();
  			}
  			return res;
  		}
  
  		public long nextLong() {
  			cnt = 1;
  			boolean neg = false;
  			if (c == NC) c = getChar();
  			for (; (c < '0' || c > '9'); c = getChar()) {
  				if (c == '-') neg = true;
  			}
  			long res = 0;
  			for (; c >= '0' && c <= '9'; c = getChar()) {
  				res = (res << 3) + (res << 1) + c - '0';
  				cnt *= 10;
  			}
  			return neg ? -res : res;
  		}
  
  		public double nextDouble() {
  			double cur = nextLong();
  			return c != '.' ? cur : cur + nextLong() / cnt;
  		}
  
  		public double[] nextDoubles(int N) {
  			double[] res = new double[N];
  			for (int i = 0; i < N; i++) {
  				res[i] = nextDouble();
  			}
  			return res;
  		}
  
  		public String next() {
  			StringBuilder res = new StringBuilder();
  			while (c <= 32) c = getChar();
  			while (c > 32) {
  				res.append(c);
  				c = getChar();
  			}
  			return res.toString();
  		}
  
  		public String nextLine() {
  			StringBuilder res = new StringBuilder();
  			while (c <= 32) c = getChar();
  			while (c != '\n') {
  				res.append(c);
  				c = getChar();
  			}
  			return res.toString();
  		}
  
  		public boolean hasNext() {
  			if (c > 32) return true;
  			while (true) {
  				c = getChar();
  				if (c == NC) return false;
  				else if (c > 32) return true;
  			}
  		}
  	}
  }