def first_Missing_Positive(arr, n):
    positive = set(x for x in arr if x > 0)
    i = 1
    while i in positive:
        i += 1
    return i