int main() { int a, min, num; scanf("%d\n%d", &a,&num); min = num; for (int i = 0; i < (a - 1);i++) { scanf("%d", &num); if (min <= num) num = min; } printf("%d", num); return 0; }