n = int(input())
a = list(map(int,input().split()))
a_n4 = a_4 = [x for x in a if x%4!=0]
a_4 = [x for x in a if x%4==0]
a_2 = [x for x in a if x%4!=0 and x%2==0]

print("Yes "if (len(a_n4)-2-(int(len(a_2)/2))<=len(a_4)) or (len(a_2)==n) else "No")
