#include using namespace std; #define modulo 1000000007 #define mod(mod_x) ((((long long)mod_x)+modulo)%modulo) #define Inf 1000000000 int main(){ int N; cin>>N; string S; getline(cin,S);getline(cin,S); for(int i=0;i>A[i]; } A[2] = stoll(S); vector num(0); for(int i=0;i<3;i++){ for(int j=i+1;j<3;j++){ num.push_back(A[i]+A[j]); } } sort(num.begin(),num.end(),greater()); unique(num.begin(),num.end()); cout<