import itertools

n = int(input())
as_ = [int(e) for e in input().split()]

if any([all([(l[i] * l[i + 1]) % 4 == 0 for i in range(n - 1)]) for l in itertools.permutations(as_)]):
    print("Yes")
else:
    print("No")