#include using namespace std; using ll=long long; int main() { ll n; cin>>n; string s; getline(cin,s);getline(cin,s); for(ll i=0;i a(2); for(int i=0;i<2;++i){ cin>>a[i]; } a[2]=stoll(s); sort(a.begin(),a.end()); ll sum=a[1]+a[2]; cout<