#include using namespace std; #define int long long int n,m; bool check(int k,int *a){ vector v; v.push_back(a[0]+a[k]); for(int i=1;i>n>>m; int a[n]; for(int i=0;i>a[i]; sort(a+1,a+n); int l=0,r=n-1; if(!check(r,a)){ cout<<-1<