#include<bits/stdc++.h>
using namespace std;
using ll=long long;
ll N;
string s;
int main(){
  cin>>N>>s;bool y=false;vector<ll>a(N);
  for(ll I=0;I<2;I++){
    for(ll J=0;J<2;J++){
  a[0]=I;a[1]=J;
    for(ll i=1;i<N-1;i++)
      if((a[i]==1 && s[i]=='o')||(a[i]==0 && s[i]=='x')){
      a[i+1]=1-a[i-1];
      }else
        a[i+1]=a[i-1];
      bool x=true;
 if((a[N-1]==1 && s[N-1]=='o')||(a[N-1]==0 && s[N-1]=='x')){
      if(a[N-2]==a[0])x=false;
      }else{
  if(a[N-2]!=a[0])x=false;
 }
      if((a[0]==1 && s[0]=='o')||(a[0]==0 && s[0]=='x')){
      if(a[N-1]==a[1])x=false;
      }else{
  if(a[N-1]!=a[1])x=false;
 }if(x==true){y=true;break;}
        
    }if(y)break;
  }if(!y)
      cout<<-1<<endl;
  else{
  string S="";
    for(ll i=0;i<N;i++)
      if(a[i]==0)
        S+='S';
    else
      S+='W';
  cout<<S<<endl;
  }
  return 0;
}
#include <bits/stdc++.h>

using namespace std;

const int MAXN = 1E5;
bool isSheep[MAXN];
bool o[MAXN];
bool options[2] = {true, false};

bool isValid(int n)
{
    bool firstSheep = isSheep[0];
    for (int i = 1; i < n; i++)
    {
         if (isSheep[i] && o[i] || !isSheep[i] && !o[i])
         {
             isSheep[(i + 1) % n] = isSheep[i - 1];
         }
         else if (isSheep[i] && !o[i] || !isSheep[i] && o[i])
         {
             isSheep[(i + 1) % n] = !isSheep[i - 1];
         }
    }
    if (isSheep[0] != firstSheep)
        return false;
    if (firstSheep && o[0] || !firstSheep && !o[0])
    {
        return isSheep[n - 1] == isSheep[1];
    }
    else
    {
        return isSheep[n - 1] != isSheep[1];
    }
}

int main()
{
    int n;
    cin >> n;
    for (int i = 0; i < n; i++)
    {
        char c;
        cin >> c;
        o[i] = c == 'o';
    }
    bool valid = false;
    for (bool s1 : options)
    {
        for (bool s2 : options)
        {
            isSheep[0] = s1;
            isSheep[1] = s2;
            if (isValid(n))
            {
                valid = true;
                break;
            }
        }
        if (valid)
            break;
    }
    if (valid)
    {
        stringstream ss;
        for (int i = 0; i < n; i++)
        {
            if (isSheep[i])
                ss << "S";
            else
                ss << "W";
        }
        cout << ss.str() << endl;
    }
    else
        cout << -1 << endl;
    return 0;
}
