def f(a):
    b = []
    for c in a:
        if c == ''.join(reversed(c)):
            b.append(c)
    return b