def load_triangles(filename):
    """Load triangles from filename."""
    triangles = []
    with open(filename) as f:
        for line in f:
           if line.strip():
               triangles.append(tuple([int(side) for side in line.split()]))
    return triangles