#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
bool f(double a, double b){ //Вспомогательная функция для сортировки вектора по убыванию
return a>b;
}
int main() {
vector<double> real;
double value;
while(cin >> value){
real.push_back(value);
}
int size = real.size();
int size_of_sum = ceil(size%2==0?size/2:size/2+1); //Размер вектора сумм
vector<double> sum;
for(int i = 0; i < size_of_sum; i++){
if(i == size_of_sum-1 && size%2 != 0) sum.push_back(2*real[i]);// Средний элемент массива real при нечетном size
else sum.push_back(real[i] + real[size - i - 1]);
}
sort(sum.begin(),sum.end(),f); // Сортировка по убыванию
cout << sum[0];
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgpib29sIGYoZG91YmxlIGEsIGRvdWJsZSBiKXsgLy/QktGB0L/QvtC80L7Qs9Cw0YLQtdC70YzQvdCw0Y8g0YTRg9C90LrRhtC40Y8g0LTQu9GPINGB0L7RgNGC0LjRgNC+0LLQutC4INCy0LXQutGC0L7RgNCwINC/0L4g0YPQsdGL0LLQsNC90LjRjgoJcmV0dXJuIGE+YjsKfQoKaW50IG1haW4oKSB7Cgl2ZWN0b3I8ZG91YmxlPiByZWFsOwoJZG91YmxlIHZhbHVlOwoJd2hpbGUoY2luID4+IHZhbHVlKXsKCQlyZWFsLnB1c2hfYmFjayh2YWx1ZSk7Cgl9CglpbnQgc2l6ZSA9IHJlYWwuc2l6ZSgpOwoJaW50IHNpemVfb2Zfc3VtID0gY2VpbChzaXplJTI9PTA/c2l6ZS8yOnNpemUvMisxKTsgLy/QoNCw0LfQvNC10YAg0LLQtdC60YLQvtGA0LAg0YHRg9C80LwKCXZlY3Rvcjxkb3VibGU+IHN1bTsKCWZvcihpbnQgaSA9IDA7IGkgPCBzaXplX29mX3N1bTsgaSsrKXsKCQlpZihpID09IHNpemVfb2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