include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
vector<double> arr(n);
for(int i=0;i<n;i++)
cin>>arr[i];
double res=arr[0],sm=arr[0],b=arr[0];
for(int i=1;i<n;i++)
{
double x=b;
b = max(arr[i],max(barr[i],smarr[i]));
sm = min(arr[i],min(smarr[i],xarr[i]));
res =max(res,b);
}
printf("%.2f",res);
return 0;
}</double>