def main():
    N = int(input())
    n = N // 2
    A = map(int, input().split())
    for a in A:
        if a == 2:
            n -= 0.5
        if a % 4 == 0:
            n -= 1
        if n == 0:
            print('Yes')
            return
    print('No')


main()
