def extract_arguments(fh):
    N = int(fh.readline().strip())
    A = [int(fh.readline().strip()) for _ in range(2 ** N)]
    return N, A