Given string of length N, S consisting 'L' and 'R'.
Initally, array A contains one zero, that is A = [0].
Please perform the following sequentially for each of S1, S2, S3, ...., Sn:
Find the final result of array A.
The first line contains single integer, N.
The second line contains a string S consisting of 'L' and 'R'.
Print one line, content of array A.
Seperate the elements by space (do not print extra spaces after the last element).
Please add a newline('\n') at the end.