def read_file(name):
    """Given the path/name of the file, return nthe jobs list with jobs[][0]: weight and jobs[][1]: length.
    """
    
    file = open(name,'r')
    data = file.readlines()
    
    jobs = []
    
    for line in data[1:]:
        items = line.split()
        jobs.append([int(items[0]),int(items[1])])
        
    return jobs