#include <iostream>
using namespace std;
void solve(){
int ans = 1e9 + 7, cur, n = 20;
while(n--){
cin >> cur;
ans = min(ans,cur);
}
signed main() {
solve();
#include <iostream>
using namespace std;
void solve(){
int ans = 1e9 + 7, cur, n = 20;
while(n--){
cin >> cur;
ans = min(ans,cur);
}
}
signed main() {
solve();
}