n = int(input()) mn = min(map(int, input().split())) print('Yes' if mn <= 1 else 'No')