https://cses.fi/paste/217ff3a030188e9e88f00/
n=int(input())try:lst=list(map(int,input().split()))lst.sort()for i in range(1,n+1):if lst[i-1]!=i:print(i)breakexcept:print(n)
https://cses.fi/paste/217ff3a030188e9e88f00/
n=int(input())try:lst=list(map(int,input().split()))lst.sort()for i in range(1,n+1):if lst[i-1]!=i:print(i)breakexcept:print(n)