def extract_arguments(fh):
    inputs = []
    while True:
        N = int(fh.readline().strip())
        if N == 0:
            break
        A = list(map(int, fh.readline().strip().split()))
        inputs.append((N, A))
    return inputs