if __name__ == "__main__":
    N = int(input())
    a = list(map(int, input().split()))
    n1 = 0
    n2 = 0
    n4 = 0
    for i in a:
        if i % 4 == 0:
            n4 += 1
        elif i % 2 == 0:
            n2 += 1
        else:
            n1 += 1
    if n2 == 0 and n4 == 0 and n1 == 1:
        print("Yes")
    else:
        if n1 == n4:
            print("Yes")
        elif n1 == n4 + 1:
            if n2 == 0:
                print("Yes")
            else:
                print("No")
        else:
            print("No")
