#include<iostream> using namespace std; int main() { int n,w,minn=101; cin>>n; while(n--){ cin>>w; if(w<=minn){ minn=w; } } cout<<minn; return 0; }