def main():
    ans = "No"
    yon = 0
    ni = 0
    hoka = 0
    N = int(input())
    for ele in input().split():
        ele = int(ele)
        if ele == 2:
            ni += 1
        elif ele % 4 == 0:
            yon += 1

    tmp = int(max(min(ni/2, yon/2), 0))
    N -= 3 * tmp
    yon -= tmp

    if yon >= int(N/2):
        ans = "Yes"

    print(ans)


if __name__ == "__main__":
    main()
