def m():
    N = int(input())
    a = list(map(int, input().split()))
    fours = []
    twes = []

    for i in range(N):
        if a[i] % 4 == 0:
            fours.append(a[i])
            continue

        if a[i] % 2 == 0:
            twes.append(a[i])

    if len(a) % 3 == 0:
        if ((len(a) + len(twes))// 3) <= len(fours):
                return 'Yes'
        if len(a) // 3 <= len(fours):
            if len(twes) % 2 == 0:
                return 'Yes'
    else:
        if ((len(a) + len(twes)) // 3) + 1 <= len(fours):
                return 'Yes'
        if (len(a) // 3) + 1 <= len(fours):
            if len(twes) % 2 == 0:
                return 'Yes'

    return 'No'

print(m())