import sys
def main():
s = '+++++++++++[>++++++++++<-]>++.-.+++++++.<++++[>----<-]>-.+++++++++++++.++.+++++.'
mem = [0]*256
stack = []
i = 0
j = 0
while i < len(s):
c = s[i]
if c == '>':
j += 1
elif c == '<':
j -= 1
elif c == '+':
mem[j] += 1
elif c == '-':
mem[j] -= 1
elif c == '.':
sys.stdout.write(chr(mem[j]))
elif c == '[':
if mem[j] == 0:
while not s[i] == ']':
i += 1
else:
stack.append(i)
elif c == ']':
if mem[j] == 0:
stack.pop()
else:
i = stack[-1]
i += 1
if __name__ == '__main__':
main()
aW1wb3J0IHN5cwpkZWYgbWFpbigpOgogICAgcyA9ICcrKysrKysrKysrK1s+KysrKysrKysrKzwtXT4rKy4tLisrKysrKysuPCsrKytbPi0tLS08LV0+LS4rKysrKysrKysrKysrLisrLisrKysrLicKICAgIG1lbSA9IFswXSoyNTYKICAgIHN0YWNrID0gW10KICAgIGkgPSAwCiAgICBqID0gMAogICAgd2hpbGUgaSA8IGxlbihzKToKICAgICAgICBjID0gc1tpXQogICAgICAgIGlmIGMgPT0gJz4nOgogICAgICAgICAgICBqICs9IDEKICAgICAgICBlbGlmIGMgPT0gJzwnOgogICAgICAgICAgICBqIC09IDEKICAgICAgICBlbGlmIGMgPT0gJysnOgogICAgICAgICAgICBtZW1bal0gKz0gMQogICAgICAgIGVsaWYgYyA9PSAnLSc6CiAgICAgICAgICAgIG1lbVtqXSAtPSAxCiAgICAgICAgZWxpZiBjID09ICcuJzoKICAgICAgICAgICAgc3lzLnN0ZG91dC53cml0ZShjaHIobWVtW2pdKSkKICAgICAgICBlbGlmIGMgPT0gJ1snOgogICAgICAgICAgICBpZiBtZW1bal0gPT0gMDoKICAgICAgICAgICAgICAgIHdoaWxlIG5vdCBzW2ldID09ICddJzoKICAgICAgICAgICAgICAgICAgICBpICs9IDEKICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIHN0YWNrLmFwcGVuZChpKQogICAgICAgIGVsaWYgYyA9PSAnXSc6CiAgICAgICAgICAgIGlmIG1lbVtqXSA9PSAwOgogICAgICAgICAgICAgICAgc3RhY2sucG9wKCkKICAgICAgICAgICAgZWxzZToKICAgICAgICAgICAgICAgIGkgPSBzdGFja1stMV0KICAgICAgICBpICs9IDEKaWYgX19uYW1lX18gPT0gJ19fbWFpbl9fJzoKICAgIG1haW4oKQ==