LABEL prev,next;
var
data_mem: array[1..10] of integer;
command_mem: string;
i,j,k: 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]));
i:=i+1;
goto prev;
next:
for k:=1 to 10 do begin
write(data_mem[k]);
write(' ');
end;
end.
TEFCRUwgcHJldixuZXh0Owp2YXIKIGRhdGFfbWVtOiBhcnJheVsxLi4xMF0gb2YgaW50ZWdlcjsgICAgCiBjb21tYW5kX21lbTogc3RyaW5nOyAgICAgICAgICAgICAgICAgICAgIAogaSxqLGs6IGludGVnZXI7ICAgICAgICAgICAgICAgICAgICAgICAKYmVnaW4KIGo6PTE7ICAgICAgICAgICAgICAgICAKIGk6PTE7CiByZWFkbG4oY29tbWFuZF9tZW0pOyAgICAgICAKIHByZXY6CiBpZiBpPmxlbmd0aChjb21tYW5kX21lbSkgdGhlbiBnb3RvIG5leHQ7IAogICAgaWYgKGNvbW1hbmRfbWVtW2ldPScrJykgdGhlbiBkYXRhX21lbVtqXTo9IGRhdGFfbWVtW2pdKzE7CiAgICBpZiAoY29tbWFuZF9tZW1baV09Jy0nKSB0aGVuIGRhdGFfbWVtW2pdOj0gZGF0YV9tZW1bal0tMTsKICAgIGlmIChjb21tYW5kX21lbVtpXT0nPicpIHRoZW4gajo9aisxOwogICAgaWYgKGNvbW1hbmRfbWVtW2ldPSc8JykgdGhlbiBqOj1qLTE7CiAgICBpZiAoY29tbWFuZF9tZW1baV09Jy4nKSB0aGVuIHdyaXRlKGNocihkYXRhX21lbVtqXSkpOyAKICAgIAogaTo9aSsxOwogZ290byBwcmV2OwogbmV4dDoKZm9yIGs6PTEgdG8gMTAgZG8gYmVnaW4gCndyaXRlKGRhdGFfbWVtW2tdKTsKd3JpdGUoJyAnKTsKZW5kOwplbmQu