//哈哈哈哈
include[HTML_REMOVED]
using namespace std;
const int N=1e5+10;
int t;
int w[N],q[N];
int main(){
cin>>t;
int n;
for(int i=1;i<=t;i++){
cin>>n;
cout<<”Case #”<[HTML_REMOVED]>q[j];
memcpy(w,q,sizeof q);
sort(w,w+n);
for(int j=0;j[HTML_REMOVED]>1;
if(w[mid]<=2*q[j])l=mid;
else r=mid-1;
}
if(w[r]==q[j])r–;
if(r<0)cout<<”-1 “;
else cout<<w[r]<<” “;
}
cout<<endl;
}
return 0;
}