#include<iostream>
using namespace std;
int main(){int v[10],minim , i ;
cin>>n;
for(i=1;i<=n;i++)
cin>>v[i];
minim=v[1]; //Initializam minimul
for(i=1;i<=n;i+=2) //Parcurgem pozitiile impare calculand minimul
if(v[i]<minim)
minim=v[i];
cout<<minim;}