n=int(input()) a=list(map(int,input().split())) if max(a)>n: print("No") exit() else: print("Yes")