#include<iostream>
#include<string>
#include<algorithm>
#include<set>
using namespace std;
int main()
{
  int n;
  string s,k;
  cin>>n>>s;
  k="SS";
  for(int i=2;i<n;i++){
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='W';
  }
  if(k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='W')
    if(k[0]=='S'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='S'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='W'){
      cout<<k;
      return 0;
    }
  k="SW";
  for(int i=2;i<n;i++){
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='W';
  }
  if(k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='W')
    if(k[0]=='S'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='S'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='W'){
      cout<<k;
      return 0;
    }
  k="WS";
  for(int i=2;i<n;i++){
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='W';
  }
  if(k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='W')
    if(k[0]=='S'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='S'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='W'){
      cout<<k;
      return 0;
    }
  k="WW";
  for(int i=2;i<n;i++){
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='S'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='S'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='S')
      k+='W';
    if(k[i-1]=='W'&&s[i-1]=='o'&&k[i-2]=='W')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='S')
      k+='S';
    if(k[i-1]=='W'&&s[i-1]=='x'&&k[i-2]=='W')
      k+='W';
  }
  if(k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='S'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='S'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='S'&&k[0]=='W'
   ||k[n-1]=='W'&&s[n-1]=='o'&&k[n-2]=='W'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='S'&&k[0]=='S'
   ||k[n-1]=='W'&&s[n-1]=='x'&&k[n-2]=='W'&&k[0]=='W')
    if(k[0]=='S'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='S'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='S'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='S'&&k[n-1]=='W'
     ||k[0]=='W'&&s[0]=='o'&&k[1]=='W'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='S'&&k[n-1]=='S'
     ||k[0]=='W'&&s[0]=='x'&&k[1]=='W'&&k[n-1]=='W'){
      cout<<k;
      return 0;
    }
  cout<<"-1";
  return 0;
}

Measured memory_bytes: 640