import java.util.Scanner; public class Main { static int[] S; static int[] T; static int[] Y; static int[] M; static int[][] dp; static final int INF = Integer.MAX_VALUE/2; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int C = sc.nextInt(); int V = sc.nextInt(); dp = new int[N][C+1]; S = new int[V]; for (int i=0; i