n = int(input())
a_L = list(map(int,input().split()))

L = [0 for _ in range(n)]

# four = 0
# two = 0
# for i in range(n):
#     if a_L[i]%4==0:
#         L[i] = 1
#         four += 1
#         continue
#     if a_L[i]%2==0:
#         two += 1


# if n%2 == 0:
#     if n/2+1 <= two+four:
#         print("Yes")
#         exit()
# else:
#     if int(n/2) <= two+four :
#         #ans = "Yes"
#         print("Yes")
#         exit()

if n<5:
    print("Yes")
else:
    print("No")