from typing import Tuple
from typing import List


def read_input_file(filename: str) -> Tuple[List, List]:
    """
    Read IDs and SMILES from a file with expected structure:
    ID1,SMILES1\n
    ID2,SMILES2\n
    (...)

    Args:
        filename (str): Input file name

    Returns:
        Tuple[List, List]: List of IDs, List of SMILES
    """
    ids = []
    smiles = []
    with open(filename, "r") as fp:
        for line in fp.readlines():
            ids.append(line.strip("\n").split(",")[0])
            smiles.append(line.strip("\n").split(",")[1])
    return ids, smiles