n,k = map(int,input().split()) a = [list(map(int,input().split())) for i in range(n)] dp = [[[10**18 for h in range(k+1)] for i in range(n)] for j in range(1<> i) & 1 == 0: continue for j in range(n): if(s >> j) & 1 == 1: continue for l in range(k+1): if l != 0: dp[s+(1<