N=int(input())
a_list = list(map(int, input().split()))

multi4 = lambda a: a % 4 == 0
multi4_count = sum(map(multi4, a_list))
multi2 = lambda a: a % 2 == 0
multi2_count = sum(map(multi2, a_list)) - multi4_count

max_N = multi4_count*2 + (multi4_count>0)) + multi2_count//2
print("No" if (N > max_N) else "Yes")
