#include using namespace std; long long int dp[1<<20][20]; int main(void) { cin.tie(0); ios::sync_with_stdio(false); int n,k; long long int t; vector a; long long int res = 0; cin >> n >> k; for(int i=0;i> t; a.push_back(t); } for(int tc=0;tc<3;tc++) { random_device rd; mt19937 g(rd()); shuffle(a.begin(), a.end(), g); memset(dp,-1,sizeof(dp)); for(int i=0;i