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

l = len(arr)
i = 0
j = 0
flag = False

result = [arr[0]]

for j in range(l):
    for i in range(l):
        if (arr[j] * arr[i]) % 4 == 0:
            result.append(arr[i])
            if (len(result) == l):
                flag = True
                break
        if flag == True:
            break
    if flag == True:
        break
    else:
        result = [arr[0]]

if flag == True:
    print("Yes")
else:
    print("No")