#include <bits/stdc++.h>
using namespace std;
int n, a[(100000 + 5)];
int main() {
  cin >> n;
  a[0] = 1000000000 + 5;
  for (int i = 1; i <= n; i++) a[0] = min(a[0], a[i]);
  cout << a[0];
  return 0;
}
