#check n=int(input()) s=list(map(int,input().split())) if not 2<=n<=10**4:print(aaa) if not len(s)==len(set(s))==n:print(aaa) if not (min(s)==1 and max(s)==n):print(aaa)