import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int n = koko.nextInt(); int d = koko.nextInt(); int k = koko.nextInt(); boolean[][][] price = new boolean[n+1][n+1][n*(n+1)/2]; price[0][0][0]=true; for(int x=0; x0; x--){ if(price[x][k][d]){ judge=true; int[] a = new int[k]; int b =0; while(x>0){ if(x<=d&&price[x-1][k-1][d-x]){ a[b++]=x; k--; d=d-x; x--; }else{ x--; } } Arrays.sort(a); for(int i=0; i