from itertools import chain


def cadenes(iterables, n):
    return filter(lambda x: x % n == 0, chain.from_iterable(iterables))
