import java.util.*; import java.io.*; import static java.util.Arrays.*; import static java.lang.Math.*; public class No0115 { static final Scanner in = new Scanner(System.in); static final PrintWriter out = new PrintWriter(System.out,false); static void solve() { int n = in.nextInt(); int d = in.nextInt(); int K = in.nextInt(); String[][][] dp = new String[n+1][2000][K+2]; dp[0][0][0] = ""; for (int i=0; i 0) ? (dp[i][j][k]+(char)(i+1)) : dp[i+1][i+j+1][k+1]; dp[i+1][j][k] = (dp[i+1][j][k] == null || dp[i+1][j][k].compareTo(dp[i][j][k]) > 0) ? dp[i][j][k] : dp[i+1][j][k]; } } } if (dp[n][d][K] == null) { out.println("-1"); } else { for(int i=0; i