#!/usr/bin/python

# -*- coding: utf-8 -*-







def gen(start, s):

	for i in range(1, len(s)+1):

		c = start[i]

		h = s[i] if i < len(s) else s[0]

		if h == 'o':

			if c == 'S':

				start += start[i-1]

			else:

				start += 'S' if start[i-1] == 'W' else 'W'

		else:

			if c == 'S':

				start += 'S' if start[i-1] == 'W' else 'W'

			else:

				start += start[i-1]



	if start[:2] == start[-2:]:

		return start[:-2]

	return ''





def main():

	n = int(input())

	s = input()



	for x in ('SS', 'SW', 'WW', 'WS'):

		ans = gen(x, s)

		if ans:

			print(ans)

			return

	print(-1)



if __name__ == '__main__':

	main()
n = int(input())

s = input()



def d(r):

	for i in range(1, n):

		if r[i] == "S":

			if s[i] == "o":

				r += r[i-1]

			else:

				r += "S" if r[i-1] == "W" else "W"

		else:

			if s[i] == "o":

				r += "S" if r[i-1] == "W" else "W"

			else:

				r += r[i-1]

	if r[0] != r[-1]:

		return False

	else:

		if r[0] == "S":

			if s[0] == "o":

				if r[1] != r[-2]:

					return False

			else:

				if r[1] == r[-2]:

					return False

		else:

			if s[0] == "o":

				if r[1] == r[-2]:

					return False

			else:

				if r[1] != r[-2]:

					return False



	return r[:-1]



def main():

	r1 = "SS"

	r2 = "SW"

	r3 = "WS"

	r4 = "WW"

	a = d(r1)

	if a:

		print(a)

		return

	a = d(r2)

	if a:

		print(a)

		return

	a = d(r3)

	if a:

		print(a)

		return

	a = d(r4)

	if a:

		print(a)

		return

	print(-1)



main()
#!/usr/bin/python
# -*- coding: utf-8 -*-
def gen(start, s):
    for i in range(1, len(s) + 1):
        c = start[i]
        h = s[i] if i < len(s) else s[0]
        if h == "o":
            if c == "S":
                start += start[i - 1]
            else:
                start += "S" if start[i - 1] == "W" else "W"
        else:
            if c == "S":
                start += "S" if start[i - 1] == "W" else "W"
            else:
                start += start[i - 1]
    if start[:2] == start[-2:]:
        return start[:-2]
    return ""


def main():
    n = int(input())
    s = input()
    for x in ("SS", "SW", "WW", "WS"):
        ans = gen(x, s)
        if ans:
            print(ans)
            return
    print(-1)


if __name__ == "__main__":
    main()

n = int(input())
s = input()


def d(r):
    for i in range(1, n):
        if r[i] == "S":
            if s[i] == "o":
                r += r[i - 1]
            else:
                r += "S" if r[i - 1] == "W" else "W"
        else:
            if s[i] == "o":
                r += "S" if r[i - 1] == "W" else "W"
            else:
                r += r[i - 1]
    if r[0] != r[-1]:
        return False
    else:
        if r[0] == "S":
            if s[0] == "o":
                if r[1] != r[-2]:
                    return False
            else:
                if r[1] == r[-2]:
                    return False
        else:
            if s[0] == "o":
                if r[1] == r[-2]:
                    return False
            else:
                if r[1] != r[-2]:
                    return False
    return r[:-1]


def main():
    r1 = "SS"
    r2 = "SW"
    r3 = "WS"
    r4 = "WW"
    a = d(r1)
    if a:
        print(a)
        return
    a = d(r2)
    if a:
        print(a)
        return
    a = d(r3)
    if a:
        print(a)
        return
    a = d(r4)
    if a:
        print(a)
        return
    print(-1)


main()

-#!/usr/bin/python -# -*- coding: utf-8 -*- -def gen(start, s): -    for i in range(1, len(s) + 1): -        c = start[i] -        h = s[i] if i < len(s) else s[0] -        if h == "o": -            if c == "S": -                start += start[i - 1] +n = int(input()) +s = input() + + +def d(r): +    for i in range(1, n): +        if r[i] == "S": +            if s[i] == "o": +                r += r[i - 1] -                start += "S" if start[i - 1] == "W" else "W" +                r += "S" if r[i - 1] == "W" else "W" -            if c == "S": -                start += "S" if start[i - 1] == "W" else "W" +            if s[i] == "o": +                r += "S" if r[i - 1] == "W" else "W" -                start += start[i - 1] -    if start[:2] == start[-2:]: -        return start[:-2] -    return "" +                r += r[i - 1] +    if r[0] != r[-1]: +        return False +    else: +        if r[0] == "S": +            if s[0] == "o": +                if r[1] != r[-2]: +                    return False +            else: +                if r[1] == r[-2]: +                    return False +        else: +            if s[0] == "o": +                if r[1] == r[-2]: +                    return False +            else: +                if r[1] != r[-2]: +                    return False +    return r[:-1] -    n = int(input()) -    s = input() -    for x in ("SS", "SW", "WW", "WS"): -        ans = gen(x, s) -        if ans: -            print(ans) -            return +    r1 = "SS" +    r2 = "SW" +    r3 = "WS" +    r4 = "WW" +    a = d(r1) +    if a: +        print(a) +        return +    a = d(r2) +    if a: +        print(a) +        return +    a = d(r3) +    if a: +        print(a) +        return +    a = d(r4) +    if a: +        print(a) +        return -if __name__ == "__main__": -    main() +main()