# your code goes here
"""
カンマ区切りで入力し、奇数のみを取り出し二乗する
"""
import sys
for line in sys.stdin:
line = line.strip()
ents = line.split(",")
print(list(map(lambda x:x**2, filter(lambda x:x%2==1, map(int, ents)))))
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCiIiIgrjgqvjg7Pjg57ljLrliIfjgorjgaflhaXlipvjgZfjgIHlpYfmlbDjga7jgb/jgpLlj5bjgorlh7rjgZfkuozkuZfjgZnjgosKIiIiCmltcG9ydCBzeXMKZm9yIGxpbmUgaW4gc3lzLnN0ZGluOgogIGxpbmUgPSBsaW5lLnN0cmlwKCkKICBlbnRzID0gbGluZS5zcGxpdCgiLCIpCiAgcHJpbnQobGlzdChtYXAobGFtYmRhIHg6eCoqMiwgZmlsdGVyKGxhbWJkYSB4OnglMj09MSwgbWFwKGludCwgZW50cykpKSkp