def moves(arr):
    ee = e = 0
    for i in range(0, len(arr)):
        if ((arr[i] % 2) == 0):
            e += 1
    for i in range(0, len(arr)):
        if ((arr[i] % 2) == 0):
            if (i >= e):
                ee += 1
    return ee
def moves(arr):
    ee = e = 0
    for i in range(0, len(arr)):
        if ((arr[i] % 2) == 0):
            e += 1
    for i in range(0, len(arr)):
        if ((arr[i] % 2) == 0):
            if (i >= e):
                ee += 1
    return ee