from copy import deepcopy



def main():

    n = int(eval(input()))

    a = list(map(int, input().split()))

    div2 = [0] * n

    div4 = deepcopy(div2)

    notdiv4 = deepcopy(div2)

    for i in range(n):

        if a[i] % 4 == 0:

            div4[i] = 1

        elif a[i] % 2 == 0:

            div2[i] = 1

        else:

            notdiv4[i] = 1

    num_notdiv4 = sum(notdiv4)

    num_notdiv4 += sum(div2) % 2

    if num_notdiv4 - 1 > sum(div4):

        print('No')

    else:

        print('Yes')



if __name__ == '__main__':

    main()



def main():

    n = int(eval(input()))

    a = list(map(int, input().split()))

    div2 = 0

    div4 = 0

    notdiv4 = 0

    for ea in a:

        if ea % 4 == 0:

            div4 += 1

        elif ea % 2 == 0:

            div2 += 1

        else:

            notdiv4 += 1



    notdiv4 += div2 % 2

    if notdiv4 - 1 > div4:

        print('No')

    else:

        print('Yes')



if __name__ == '__main__':

    main()
from copy import deepcopy


def main():
    n = int(eval(input()))
    a = list(map(int, input().split()))
    div2 = [0] * n
    div4 = deepcopy(div2)
    notdiv4 = deepcopy(div2)
    for i in range(n):
        if a[i] % 4 == 0:
            div4[i] = 1
        elif a[i] % 2 == 0:
            div2[i] = 1
        else:
            notdiv4[i] = 1
    num_notdiv4 = sum(notdiv4)
    num_notdiv4 += sum(div2) % 2
    if num_notdiv4 - 1 > sum(div4):
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    main()

def main():
    n = int(eval(input()))
    a = list(map(int, input().split()))
    div2 = 0
    div4 = 0
    notdiv4 = 0
    for ea in a:
        if ea % 4 == 0:
            div4 += 1
        elif ea % 2 == 0:
            div2 += 1
        else:
            notdiv4 += 1
    notdiv4 += div2 % 2
    if notdiv4 - 1 > div4:
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    main()

-from copy import deepcopy - - -    div2 = [0] * n -    div4 = deepcopy(div2) -    notdiv4 = deepcopy(div2) -    for i in range(n): -        if a[i] % 4 == 0: -            div4[i] = 1 -        elif a[i] % 2 == 0: -            div2[i] = 1 +    div2 = 0 +    div4 = 0 +    notdiv4 = 0 +    for ea in a: +        if ea % 4 == 0: +            div4 += 1 +        elif ea % 2 == 0: +            div2 += 1 -            notdiv4[i] = 1 -    num_notdiv4 = sum(notdiv4) -    num_notdiv4 += sum(div2) % 2 -    if num_notdiv4 - 1 > sum(div4): +            notdiv4 += 1 +    notdiv4 += div2 % 2 +    if notdiv4 - 1 > div4: