# Add or remove imports
from yogi import scan

def read_list() :
    lst = []
    x = scan(int)
    while x!=0 :
        lst.append(x)
        x = scan(int)
    return lst


# Change 'function_name' to your function name,
# and addapt the way input must be read to your needs.
x = read_list()
while x:
    if even_ascending(x) : print(f"List {x} is even_ascending")
    else : print(f"List {x} is NOT even_ascending")
    x = read_list()
    
print("Additional Jutge tests")
for x in [[3,4,5,2,8,1,7,9,12], [2,0,3,0,5,0], [0,3,0,5,0,2]] :
    if even_ascending(x) : print(f"List {x} is even_ascending")
    else : print(f"List {x} is NOT even_ascending")
    
#print("---- Internal tests (you can ignore lines below)")
import random
random.seed(12345)
nseq = 1000
for _ in range(nseq) :
    seq = [1,2,3,4,1] + [5]*10000
    x = even_ascending(seq)
    
