use a set at https://github.com/aadibajpai/advent/blob/master/day8.py#L7