#include<bits/stdc++.h> using namespace std; int main() { int fish,minn=1001,n; cin>>n; for(int i=0;i<n;i++){ cin>>fish; if(fish<minn){ minn=fish; } } cout<<minn; }