Files
code_olymp/uts/uts_17_aut_py/1/L.py

10 lines
156 B
Python

ser = int(input())
mas = list(map(int, input().split()))
kek = 0
while True:
if kek in mas:
kek += 1
else:
print(kek)
break