package yukicodercontest155; import java.util.*; public class C{ static Scanner s = new Scanner(System.in); static int[] ar = {1,3,2,4}; public static void main(String[] args) { int n=s.nextInt(),k=s.nextInt(); int[] kadomatsu = new int[n]; kadomatsu[0]=1; for(int i=1;in-1-k) kadomatsu[i]=kadomatsu[i-1]; } System.out.println(Arrays.toString(kadomatsu)); } }