import java.util.ArrayList; import java.util.Scanner; class Main { public static void main(String[] args) { new Main().run(); } void run() { Scanner sc=new Scanner(System.in); int N=sc.nextInt(); int M=sc.nextInt(); int K=sc.nextInt(); int[][] A=new int[N][M]; boolean[][] dp=new boolean[N+1][K+1]; for(int i=0;i