#include "iostream"using namespace std;int main(){ int n,_n; cin >> n; int arr[n]; for (int i=0;i(n;++i) { cin >> _n; arr[i]=_n; } double min=arr[0]; double max=arr[0]; for (int i=0;i { if (max(arr[i]) max=arr[i]; if (min>arr[i]) min=arr[i]; } double res=(max+min)/2; cout << res; cin.get(); cin.get();}