import bisect
def main():
    n=int(input())
    a=list(map(int,input().split((' '))))
    two=0
    four=0
    for i in a:
        if i%4==0:
            four += 1
        elif i%2==0:
            two += 1
    if n-two//2 <=2*four +1:
        print('Yes')
    else:
        print('No')



if __name__ == '__main__':
    main()
