N = int(input()) A = list(map(int,input().split())) if(N == 1 and A[0] == 0): print("No") else: print("Yes")