#include<bits/stdc++.h>
using namespace std;
#define int long long
#define db double
#define itn int
#define fro for
inline int read(){
int x=0,f=1;
char ch=getchar();
while(ch<'0'||ch>'9'){
if(ch=='-')f=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9'){
x=x*10+ch-'0';
ch=getchar();
}
return x*f;
}
int n;
int a[105];
signed main(){
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cin>>n;
for(int i=1;i<=n;i++)
a[i]=read();
sort(a+1,a+1+n);
cout<<a[1];
return 0;
}
拿排序写的,求大佬