Buggy python submission (verdict: Time Limit Exceeded):
s=input()

n=len(s)

x=[1]*n
z=[]
st=0
en=0
bk=0

r=[]
l=[]

for i in range(n):
	if s[i]=='R':
		r.append(i)       
	else:
		l.append(i)

for i in range(10**100):
	y=[0]*n
	for j in r:
		y[j+1]+=x[j]       
	for j in l:
		y[j-1]+=x[j]
	x=y
	z.append(y)
	if i>0:
		for k in range(i-1,0,-1):
			if z[i]==z[k]:
				st=k
				en=i
				bk=1
				break
	if bk==1:
		break

cy=en-st
po=(10*100-(st+1))%cy
res=z[st+po]

print(*res)

Fixed submission:
s=input()

n=len(s)
x=[1]*n
x[n-1]=0
y=[1]*n
y[0]=0
z=[0]*n

for i in range(0,n-1):
	if s[i]=='R' and s[i+1]=='R':
		x[i+1]+=x[i]
		x[i]=0
	if s[i]=='L':
		x[i]=0   

for i in range(n-1,0,-1):
	if s[i]=='L' and s[i-1]=='L':
		y[i-1]+=y[i]
		y[i]=0
	if s[i]=='R':
		y[i]=0

i=1
while i<=n-2:
	if x[i]>1:
		if x[i]%2==0:
			x[i]=x[i]//2
			x[i+1]=x[i]
		else:
			x[i]=x[i]//2+1
			x[i+1]=x[i]-1
		i+=1
	i+=1
        
i=n-2
while i>=1:
	if y[i]>1:
		if y[i]%2==0:
			y[i]=y[i]//2
			y[i-1]=y[i]
		else:
			y[i]=y[i]//2+1
			y[i-1]=y[i]-1
		i-=1
	i-=1

for i in range(n):
	z[i]=x[i]+y[i]

print(*z)

Buggy python submission (verdict: Time Limit Exceeded):
s=input()

n=len(s)

x=[1]*n
z=[]
st=0
en=0
bk=0

for i in range(10**100):
	y=[0]*n
	for j in range(n):
		if s[j]=='R':
			y[j+1]+=x[j]       
		else:
			y[j-1]+=x[j]
	x=y
	z.append(y)
	if i>0:
		for k in range(i-1,0,-1):
			if z[i]==z[k]:
				st=k
				en=i
				bk=1
				break
	if bk==1:
		break

cy=en-st
po=(10*100-(st+1))%cy
res=z[st+po]

print(*res)

Fixed submission:
s=input()

n=len(s)
x=[1]*n
x[n-1]=0
y=[1]*n
y[0]=0
z=[0]*n

for i in range(0,n-1):
	if s[i]=='R' and s[i+1]=='R':
		x[i+1]+=x[i]
		x[i]=0
	if s[i]=='L':
		x[i]=0   

for i in range(n-1,0,-1):
	if s[i]=='L' and s[i-1]=='L':
		y[i-1]+=y[i]
		y[i]=0
	if s[i]=='R':
		y[i]=0

i=1
while i<=n-2:
	if x[i]>1:
		if x[i]%2==0:
			x[i]=x[i]//2
			x[i+1]=x[i]
		else:
			x[i]=x[i]//2+1
			x[i+1]=x[i]-1
		i+=1
	i+=1
        
i=n-2
while i>=1:
	if y[i]>1:
		if y[i]%2==0:
			y[i]=y[i]//2
			y[i-1]=y[i]
		else:
			y[i]=y[i]//2+1
			y[i-1]=y[i]-1
		i-=1
	i-=1

for i in range(n):
	z[i]=x[i]+y[i]

print(*z)

Buggy python submission (verdict: Time Limit Exceeded):
s=input()

n=len(s)

x=[1]*n
z=[]
st=0
en=0
bk=0

for i in range(10**100):
	y=[0]*n
	for j in range(n):
		if s[j]=='R':
			y[j+1]+=x[j]       
		else:
			y[j-1]+=x[j]
	x=y
	z.append(y)
	if i>0:
		for k in range(i-1):
			if z[i]==z[k]:
				st=k
				en=i
				bk=1
				break
	if bk==1:
		break

cy=en-st
po=(10*100-(st+1))%cy
res=z[st+po]

print(*res)


Fixed submission:
s=input()

n=len(s)
x=[1]*n
x[n-1]=0
y=[1]*n
y[0]=0
z=[0]*n

for i in range(0,n-1):
	if s[i]=='R' and s[i+1]=='R':
		x[i+1]+=x[i]
		x[i]=0
	if s[i]=='L':
		x[i]=0   

for i in range(n-1,0,-1):
	if s[i]=='L' and s[i-1]=='L':
		y[i-1]+=y[i]
		y[i]=0
	if s[i]=='R':
		y[i]=0

i=1
while i<=n-2:
	if x[i]>1:
		if x[i]%2==0:
			x[i]=x[i]//2
			x[i+1]=x[i]
		else:
			x[i]=x[i]//2+1
			x[i+1]=x[i]-1
		i+=1
	i+=1
        
i=n-2
while i>=1:
	if y[i]>1:
		if y[i]%2==0:
			y[i]=y[i]//2
			y[i-1]=y[i]
		else:
			y[i]=y[i]//2+1
			y[i-1]=y[i]-1
		i-=1
	i-=1

for i in range(n):
	z[i]=x[i]+y[i]

print(*z)

Buggy python submission (verdict: Time Limit Exceeded):
s=input()

n=len(s)

x=[1]*n
z=[]
st=0
en=0
bk=0

for i in range(10**100):
	y=[0]*n
	for j in range(n):
		if s[j]=='R':
			y[j+1]+=x[j]       
		else:
			y[j-1]+=x[j]
	x=y
	z.append(y)
	if i>0:
		for k in range(i-1):
			if z[i]==z[k]:
				st=k
				en=i
				bk=1
				break
	if bk==1:
		break

cy=en-st
po=(10*100-(st+1))%cy
res=z[st+po]

print(*res)

Fixed submission:
s=input()

n=len(s)
x=[1]*n
x[n-1]=0
y=[1]*n
y[0]=0
z=[0]*n

for i in range(0,n-1):
	if s[i]=='R' and s[i+1]=='R':
		x[i+1]+=x[i]
		x[i]=0
	if s[i]=='L':
		x[i]=0   

for i in range(n-1,0,-1):
	if s[i]=='L' and s[i-1]=='L':
		y[i-1]+=y[i]
		y[i]=0
	if s[i]=='R':
		y[i]=0

i=1
while i<=n-2:
	if x[i]>1:
		if x[i]%2==0:
			x[i]=x[i]//2
			x[i+1]=x[i]
		else:
			x[i]=x[i]//2+1
			x[i+1]=x[i]-1
		i+=1
	i+=1
        
i=n-2
while i>=1:
	if y[i]>1:
		if y[i]%2==0:
			y[i]=y[i]//2
			y[i-1]=y[i]
		else:
			y[i]=y[i]//2+1
			y[i-1]=y[i]-1
		i-=1
	i-=1

for i in range(n):
	z[i]=x[i]+y[i]

print(*z)

Buggy python submission (verdict: Time Limit Exceeded):
s=input()

n=len(s)

x=[1]*n
z=[]
itr=0

for i in range(10**100):
	y=[0]*n
	for j in range(n):
		if s[j]=='R':
			y[j+1]+=x[j]       
		else:
			y[j-1]+=x[j]
	x=y
	z.append(y)
	if i>=2 and y==z[i-2]:
		itr=i
		break

if (10*100-itr)%2==0:
	res=z[itr-1]
else:
	res=z[itr-2]

print(*res)

Fixed submission:
s=input()

n=len(s)
x=[1]*n
x[n-1]=0
y=[1]*n
y[0]=0
z=[0]*n

for i in range(0,n-1):
	if s[i]=='R' and s[i+1]=='R':
		x[i+1]+=x[i]
		x[i]=0
	if s[i]=='L':
		x[i]=0   

for i in range(n-1,0,-1):
	if s[i]=='L' and s[i-1]=='L':
		y[i-1]+=y[i]
		y[i]=0
	if s[i]=='R':
		y[i]=0

i=1
while i<=n-2:
	if x[i]>1:
		if x[i]%2==0:
			x[i]=x[i]//2
			x[i+1]=x[i]
		else:
			x[i]=x[i]//2+1
			x[i+1]=x[i]-1
		i+=1
	i+=1
        
i=n-2
while i>=1:
	if y[i]>1:
		if y[i]%2==0:
			y[i]=y[i]//2
			y[i-1]=y[i]
		else:
			y[i]=y[i]//2+1
			y[i-1]=y[i]-1
		i-=1
	i-=1

for i in range(n):
	z[i]=x[i]+y[i]

print(*z)