N = int(input())
A = list(map(int, input().split()))
maru = len([a for a in A if a % 4 == 0])
sankaku = len([a for a in A if a == 2])
batu = len(A) - maru - sankaku
ans = 'Yes' if int((N - sankaku) / 2) <= maru else 'No'
print(ans)
