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