def read_clique_file(clique_ases_filename):
    """
    Format of clique file:
        !XXXXX <- These lines correspond to blacklisted guard ASes
        XXXXX  <- These lines correspond to client ASes in the clique
        One AS per line.
    """
    blacklisted_guard_asns = []
    clique_asns = []

    with open(clique_ases_filename, 'r') as clique_file:
        for line in clique_file:
            line = line.strip('\n')
            if line[0] == '!':
                blacklisted_guard_asns.append(line[1:])
            else:
                clique_asns.append(line)

    return clique_asns, blacklisted_guard_asns