input() print("Yes" if min(map(int,input().split()))<2 else "No")