def extract_arguments(fh):
    inputs = []
    while True:
        N = int(fh.readline().strip())
        if N == 0:
            break
        words = [fh.readline().strip() for _ in range(N)]
        inputs.append((N, words))
    return inputs