#include<stdio.h>
#include<limits.h>
int main() {
    int n, i, num;
    int smallest_positive = INT_MAX;
    scanf("%d", &n);
    if ( n < 1 || n > 10) {
        printf("Invalid Input\n");
        return 0;
    }
    for (i = 0; i < n; i++){
        scanf("%d", &num);
        if (num < 0) {
            printf("Invalid Input\n");
            return 0;
        }
        if (num > 0 && num < smallest_positive) {
            
            smallest_positive = num;
        }
    }
    if (smallest_positive == INT_MAX) {
        print("N0 positive integer found\n");
    } else{
        printf("%d\n", smallest_positive);
    }
    return 0;
}