def get_data(fname: str) -> list:
    """
    Read the data file into a list of tuples.
    """
    with open(fname) as f:
        parse = lambda s: (s.split()[0], int(s.split()[1]))
        return [parse(rec) for rec in f.read().split("\n")]