#include <iostream>
#include <cstdio>
using namespace std;
const int maxn = 1e5 + 10;
char s[maxn];
int a[maxn];

int main(void)
{
    int N;
    scanf("%d %s", &N, s + 1);
    for(int p = 0; p <= 1; p++)
    for(int q = 0; q <= 1; q++)
    {
        a[1] = p, a[2] = q;
        for(int i = 3; i <= N; i++) a[i] = a[i-2] ^ a[i-1] ^ (s[i-1] == 'x');
        if(a[1] != a[N-1] ^ a[N] ^ (s[N] == 'x')) continue;
        if(a[2] != a[N] ^ a[1] ^ (s[1] == 'x')) continue;
        for(int i = 1; i <= N; i++) putchar(a[i] ? 'W' : 'S');
        puts(""); return 0;
    }
    puts("-1");
    return 0;
}
