# 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:
    n = consecutive_multiples(x)
    print(f"{x} - found {n} multiples of previous element")
    x = read_list()
    
print("Additional Jutge tests")
for x in [[3,4,5,2,8,1,7,9,12], [2,1,3,1,5,1], [1,3,1,5,1,2], []] :
    n = consecutive_multiples(x)
    print(f"{x} - found {n} multiples of previous element")
