n = int(input()) assert 2 <= n <= 100 p = list(map(int, input().split())) assert len(p) == n assert set(p) == set(range(n)) not_yet = True ans = [] while not_yet: not_yet = False for i in range(n - 1): if p[i] > p[i + 1]: not_yet = True p[i], p[i + 1] = p[i + 1], p[i] ans.append('S') ans.append('R') ans.append('S') print(''.join(ans))