N = int(input()) A = list(map(int,input().split())) ans = 'Yes' if min(A) >= 2: ans = 'No' print(ans)