def prepare_conf_contours(pair):
    """Generates the output text for confidence contours.
    """
    text = f"{pair[0][0]} {pair[0][1]} ssr\n"
    for result in pair[1]:
        text += " ".join(str(t) for t in result)
        text += "\n"
    return text