import itertools

def palindrom(it):
    it1 = filter(lambda x: x == x[::-1], it)
    it1 = map(lambda x: (x, len(x)), it1)
    it2, it3 = itertools.tee(it1)
    it2 = filter(lambda x: x[1]%2 == 0, it2)
    it3 = filter(lambda x: x[1]%2 != 0, it3)
    return it2, it3
