
def Solution(n, arr):
    for i in xrange(0,arr.__len__()-1):
        if (arr[i]*arr[i+1])%4 == 0:
            return True
    return False


if __name__=="__main__":
    n = raw_input()
    arr = map(int, raw_input().split(" "))
    if Solution(n, arr):
        print "Yes"
    else:
        print "No"