def seqint(it):
    n = 0
    for x in it:
        if x == -1:
            yield n
            n = 0
        else:
            n = n * 10 + x

