#include<iostream> using namespace std; int main() { int n,m=1000,j; cin>>n; for(int i=0;i<n;i++){ cin>>j; if(j<m){ m=j; } } cout<<m; return 0; }