Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ptr=0
- local stack={}
- stack[ptr]=string.byte(io.read(1))
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- while(stack[ptr]~=0) do
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- end
- ptr=ptr-1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- while(stack[ptr]~=0) do
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- end
- ptr=ptr-1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- while(stack[ptr]~=0) do
- ptr=ptr+1
- stack[ptr]=stack[ptr] and stack[ptr]+1 or 1
- ptr=ptr-1
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- ptr=ptr+1
- io.write(string.char(stack[ptr] or 0))
- while(stack[ptr]~=0) do
- stack[ptr]=stack[ptr] and stack[ptr]-1 or -1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement