N = int(input().rstrip())

t = list(map(int, input().rstrip().split()))
h = (int)(len(t) / 2)

result = 'No'
num = 0
by2 = 0
for v in t:
    if (v % 4) == 0:
        num += 1
    elif v == 2:
        by2 += 1

    if h <= (num + int(by2 / 2)):
        result = 'Yes'
        break


print(result)

