#include <bits/stdc++.h> using namespace std; int main() { int res = 1e9; for (int i = 0; i < 7; i ++ ) { int a; cin >> a; res = min(res, a); } cout << res << endl; return 0; }