<gh_stars>0
words = [word for word in input().split() if len(word) % 2 == 0]

for word in words:
    print("".join(word))

words = [word for word in input().split() if len(word) % 2 == 0]

for word in words:
    print("".join(word))