def main(): n = int(input()) A = list(map(int, input().split())) if min(A) <= 1: return "Yes" else: return "No" print(main())