import fileinput
import sys
for linha in sys.stdin:
linha = linha.replace("\n", "")
if not linha.isdigit():
print linha
aW1wb3J0IGZpbGVpbnB1dAppbXBvcnQgc3lzCgpmb3IgbGluaGEgaW4gc3lzLnN0ZGluOgogICAgbGluaGEgPSBsaW5oYS5yZXBsYWNlKCJcbiIsICIiKQogICAgaWYgbm90IGxpbmhhLmlzZGlnaXQoKToKICAgICAgICBwcmludCBsaW5oYQ==