import java.io.*; import java.util.*; class Main { public static void main(String args[])throws Exception { BufferedReader bu=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); String s[]=bu.readLine().split(" "); int n=Integer.parseInt(s[0]),m=Integer.parseInt(s[1]),l=Integer.parseInt(s[2]); long g[][]=new long[n][n],M=(long)1e18; int i,j,k; for(i=0;i>j)&1)==0) { long min=M; for(k=0;k>k)&1)==1) min=Math.min(min,g[j][k]); dp[i|(1<>j)&1)==1) k++; if(k==l) ans=Math.min(ans,dp[i]); } System.out.println(ans); } }