LABEL prev,next;
var
data_mem: array[1..10] of integer;
command_mem: string;
i,j,k: integer;
i_stor: integer;
begin
j:=1;
i:=1;
readln(command_mem);
prev:
if i>length(command_mem) then goto next;
if (command_mem[i]='+') then data_mem[j]:= data_mem[j]+1;
if (command_mem[i]='-') then data_mem[j]:= data_mem[j]-1;
if (command_mem[i]='>') then j:=j+1;
if (command_mem[i]='<') then j:=j-1;
if (command_mem[i]='.') then write(chr(data_mem[j]));
if (command_mem[i]='[') then
begin
if data_mem[j]>0 then i_stor:=i;
end;
if (command_mem[i]=']') then
begin
if data_mem[j]>0 then
begin
i:=i_stor;
end;
end;
i:=i+1;
goto prev;
next:
for k:=1 to 10 do begin
write(data_mem[k]);
write(' ');
end;
end.
TEFCRUwgcHJldixuZXh0Owp2YXIKIGRhdGFfbWVtOiBhcnJheVsxLi4xMF0gb2YgaW50ZWdlcjsgICAgCiBjb21tYW5kX21lbTogc3RyaW5nOyAgICAgICAgICAgICAgICAgICAgIAogaSxqLGs6IGludGVnZXI7ICAgICAgICAgICAgICAgICAgICAgICAKIGlfc3RvcjogaW50ZWdlcjsgCmJlZ2luCiBqOj0xOyAgICAgICAgICAgICAgICAgIAogaTo9MTsKIHJlYWRsbihjb21tYW5kX21lbSk7ICAgICAgCiBwcmV2OgogaWYgaT5sZW5ndGgoY29tbWFuZF9tZW0pIHRoZW4gZ290byBuZXh0OyAKICAgIGlmIChjb21tYW5kX21lbVtpXT0nKycpIHRoZW4gZGF0YV9tZW1bal06PSBkYXRhX21lbVtqXSsxOwogICAgaWYgKGNvbW1hbmRfbWVtW2ldPSctJykgdGhlbiBkYXRhX21lbVtqXTo9IGRhdGFfbWVtW2pdLTE7CiAgICBpZiAoY29tbWFuZF9tZW1baV09Jz4nKSB0aGVuIGo6PWorMTsKICAgIGlmIChjb21tYW5kX21lbVtpXT0nPCcpIHRoZW4gajo9ai0xOwogICAgaWYgKGNvbW1hbmRfbWVtW2ldPScuJykgdGhlbiB3cml0ZShjaHIoZGF0YV9tZW1bal0pKTsKICAgIGlmIChjb21tYW5kX21lbVtpXT0nWycpIHRoZW4KICAgICBiZWdpbiAgCiAgICAgIGlmIGRhdGFfbWVtW2pdPjAgdGhlbiBpX3N0b3I6PWk7CiAgICAgZW5kOwogICAgaWYgKGNvbW1hbmRfbWVtW2ldPSddJykgdGhlbgogICAgIGJlZ2luICAKICAgICAgaWYgZGF0YV9tZW1bal0+MCB0aGVuIAogICAgICAgYmVnaW4KICAgICAgIGk6PWlfc3RvcjsKICAgICAgIGVuZDsKICAgICBlbmQ7CiAgICAKIGk6PWkrMTsKIGdvdG8gcHJldjsKIG5leHQ6CmZvciBrOj0xIHRvIDEwIGRvIGJlZ2luIAp3cml0ZShkYXRhX21lbVtrXSk7CndyaXRlKCcgJyk7CmVuZDsKZW5kLg==
KysrKysrKysrK1smZ3Q7KysrKysrKyZndDsrKysrKysrKysrJmd0OysrKyZndDsrJmx0OyZsdDsmbHQ7Jmx0Oy1dJmd0OysrLiZndDsrLisrKysrKysuLisrKy4mZ3Q7KysuJmx0OyZsdDsrKysrKysrKysrKysrKysuJmd0Oy4rKysuLS0tLS0tLi0tLS0tLS0tLiZndDsrLiZndDsu
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.