n=int(input())

s=[0+(m=="o") for m in input()]



#o:1,x:0

#Sheep:1,wolf:0

def nxt(a,b,m):

	if a==b:

		return m

	else:

		return 1-m



for a,b in ((1,1),(0,1),(1,0),(0,0)):

	c,d = a,b

	ans = [a,b]

	for i in range(n-2):

		a,b = b,nxt(a,b,s[i+1])

		ans.append(b)

	if nxt(a,b,s[-1])==c and nxt(b,c,s[0])==d:

		for x in ans:

			if x:

				print("S",end="")

			else:

				print("W",end="")

		exit()

print(-1)

n,s=open(0);n=int(n)

for a,b in ([0,0],[0,1],[1,0],[1,1]):

	r=[a,b]

	for i in range(n):a,b=b,s[-~i%n]=="xo"[a==b];r+=[b]

	if r[:2]==r[-2:]:print(*("WS"[i]for i in r[:-2]),sep="");exit()

print(-1)

n = int(input())
s = [0 + (m == "o") for m in input()]
# o:1,x:0
# Sheep:1,wolf:0
def nxt(a, b, m):
    if a == b:
        return m
    else:
        return 1 - m


for a, b in ((1, 1), (0, 1), (1, 0), (0, 0)):
    c, d = a, b
    ans = [a, b]
    for i in range(n - 2):
        a, b = b, nxt(a, b, s[i + 1])
        ans.append(b)
    if nxt(a, b, s[-1]) == c and nxt(b, c, s[0]) == d:
        for x in ans:
            if x:
                print("S", end="")
            else:
                print("W", end="")
        exit()
print(-1)

n, s = open(0)
n = int(n)
for a, b in ([0, 0], [0, 1], [1, 0], [1, 1]):
    r = [a, b]
    for i in range(n):
        a, b = b, s[-~i % n] == "xo"[a == b]
        r += [b]
    if r[:2] == r[-2:]:
        print(*("WS"[i] for i in r[:-2]), sep="")
        exit()
print(-1)

-n = int(input()) -s = [0 + (m == "o") for m in input()] -# o:1,x:0 -# Sheep:1,wolf:0 -def nxt(a, b, m): -    if a == b: -        return m -    else: -        return 1 - m - - -for a, b in ((1, 1), (0, 1), (1, 0), (0, 0)): -    c, d = a, b -    ans = [a, b] -    for i in range(n - 2): -        a, b = b, nxt(a, b, s[i + 1]) -        ans.append(b) -    if nxt(a, b, s[-1]) == c and nxt(b, c, s[0]) == d: -        for x in ans: -            if x: -                print("S", end="") -            else: -                print("W", end="") +n, s = open(0) +n = int(n) +for a, b in ([0, 0], [0, 1], [1, 0], [1, 1]): +    r = [a, b] +    for i in range(n): +        a, b = b, s[-~i % n] == "xo"[a == b] +        r += [b] +    if r[:2] == r[-2:]: +        print(*("WS"[i] for i in r[:-2]), sep="")