
xs = map(int, input().split())

n1, n4 = 0, 0

for x in xs:
    if x % 4 == 0:
         n4 += 1
    elif x % 2 == 0:
         continue
    else:
         n1 += 1


print("Yes" if n4 >= n1 - 1 else "No")






