import itertools