import sys

import numpy as np



n = int(sys.stdin.readline().rstrip())

a = np.array(sys.stdin.read().split(), dtype=np.int64)



def main():

    mul_4 = n - np.count_nonzero(a % 4)

    mul_2 = n - np.count_nonzero(a % 2)



    if mul_4 >= n // 2:

        return 'Yes'

    if mul_4 * 2 + (mul_2 - mul_4) >= n:

        return 'Yes'

    else:

        return 'No'



if __name__ == '__main__':

    ans = main()

    print(ans)
import sys



n, *a = list(map(int, sys.stdin.read().split()))



def main():

    c4 = c2 = 0

    for x in a:

        if not x % 4: c4 += 1

        elif not x % 2: c2 += 1

    ans = 'Yes' if c4 >= n // 2 or c4 * 2 + c2 >= n else 'No'

    print(ans)



if __name__ ==  '__main__':

    main()
import sys
import numpy as np

n = int(sys.stdin.readline().rstrip())
a = np.array(sys.stdin.read().split(), dtype=np.int64)


def main():
    mul_4 = n - np.count_nonzero(a % 4)
    mul_2 = n - np.count_nonzero(a % 2)
    if mul_4 >= n // 2:
        return "Yes"
    if mul_4 * 2 + (mul_2 - mul_4) >= n:
        return "Yes"
    else:
        return "No"


if __name__ == "__main__":
    ans = main()
    print(ans)

import sys

n, *a = list(map(int, sys.stdin.read().split()))


def main():
    c4 = c2 = 0
    for x in a:
        if not x % 4:
            c4 += 1
        elif not x % 2:
            c2 += 1
    ans = "Yes" if c4 >= n // 2 or c4 * 2 + c2 >= n else "No"
    print(ans)


if __name__ == "__main__":
    main()

-import numpy as np -n = int(sys.stdin.readline().rstrip()) -a = np.array(sys.stdin.read().split(), dtype=np.int64) +n, *a = list(map(int, sys.stdin.read().split())) -    mul_4 = n - np.count_nonzero(a % 4) -    mul_2 = n - np.count_nonzero(a % 2) -    if mul_4 >= n // 2: -        return "Yes" -    if mul_4 * 2 + (mul_2 - mul_4) >= n: -        return "Yes" -    else: -        return "No" +    c4 = c2 = 0 +    for x in a: +        if not x % 4: +            c4 += 1 +        elif not x % 2: +            c2 += 1 +    ans = "Yes" if c4 >= n // 2 or c4 * 2 + c2 >= n else "No" +    print(ans) -    ans = main() -    print(ans) +    main()