import java.util.Arrays; import java.util.Scanner; public class Main { static int []a; static int D; static int sum = 0; public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); D = scan.nextInt(); int K = scan.nextInt(); scan.close(); a = new int[N]; Arrays.fill(a, 0); if(N == K) { int sum = N * (N + 1) / 2; if(sum == D) { for(int i = 0; i < N - 1; i++) { int t = i + 1; System.out.print(t + " "); } System.out.println(N); }else { System.out.println(-1); } }else { comb(1, K); } System.out.println(-1); } static void comb(int m, int r) { int n = a.length; if(n == r) { return; } if(m <= r) { int k = a[m - 1] + 1; for(int i = k; i <= n - r + m; i++){ a[m] = i; sum += i; if(sum > D) { sum = 0; return; } comb(m + 1, r); } } else { int cnt = 0; for(int i = 1; i <= r ; i++){ cnt += a[i]; } if(cnt == D) { for(int i = 1; i <= r - 1; i++){ System.out.print(a[i] + " "); } System.out.println(a[r]); System.exit(0); } sum = 0; } } }