        """
        d = { b:a for a,b in zip(widths,string.ascii_lowercase)}
        lines, count = 1,0
        for c in S:
            if count + d[c] > 100:
                lines += 1
                count = 0
            count += d[c]