#include<bits/stdc++.h>

#define INF 1e9
#define llINF 1e18
#define MOD 1e9+7
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
using namespace std;
int main(){
  int n;string str;
  cin>>n;
  cin>>str;
  //cout<<-1<<endl;
  //return 0;
  int hai[200100]={};
  bool flag=true;
  hai[0]=1;hai[1]=1;
  for(int i=1;i<n;i++){
    if(i==n-1){
      if(hai[i]>0){
	if(str[i]=='o'){
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]==hai[0])
	    flag=false;
	}
      }else{
	if(str[i]=='o'){
	  if(hai[i-1]==hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}
      }
      if(hai[0]>0){
	if(str[0]=='o'){
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]==hai[1])
	    flag=false;
	}
      }else{
	if(str[0]=='o'){
	  if(hai[n-1]==hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}
      }
    }else{
      if(hai[i]>0){
	if(str[i]=='o'){
	  hai[i+1]=hai[i-1];
	}else{
	  hai[i+1]=-hai[i-1];
	}
      }else{
	if(str[i]=='o'){
	  hai[i+1]=-hai[i-1];
	}else{
	  hai[i+1]=hai[i-1];
	}
      }
    }
  }
  if(flag){
    for(int i=0;i<n;i++){
      if(hai[i]>0)cout<<'S';
      else cout<<'W';
    }
    cout<<endl;
    return 0;
  }
  flag=true;
  for(int i=0;i<n;i++)hai[i]=0;
  hai[0]=1;hai[1]=-1;
  for(int i=1;i<n;i++){
    if(i==n-1){
      if(hai[i]>0){
	if(str[i]=='o'){
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]==hai[0])
	    flag=false;
	}
      }else{
	if(str[i]=='o'){
	  if(hai[i-1]==hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}
      }
      if(hai[0]>0){
	if(str[0]=='o'){
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]==hai[1])
	    flag=false;
	}
      }else{
	if(str[0]=='o'){
	  if(hai[n-1]==hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}
      }
    }else{
      if(hai[i]>0){
	if(str[i]=='o'){
	  hai[i+1]=hai[i-1];
	}else{
	  hai[i+1]=-hai[i-1];
	}
      }else{
	if(str[i]=='o'){
	  hai[i+1]=-hai[i-1];
	}else{
	  hai[i+1]=hai[i-1];
	}
      }
    }
  }
  if(flag){
    for(int i=0;i<n;i++){
      if(hai[i]>0)cout<<'S';
      else cout<<'W';
    }
    cout<<endl;
    return 0;
  }
  for(int i=0;i<n;i++)hai[i]=0;
  flag=true;
  hai[0]=-1;hai[1]=1;
  for(int i=1;i<n;i++){
    if(i==n-1){
      if(hai[i]>0){
	if(str[i]=='o'){
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]==hai[0])
	    flag=false;
	}
      }else{
	if(str[i]=='o'){
	  if(hai[i-1]==hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}
      }
      if(hai[0]>0){
	if(str[0]=='o'){
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]==hai[1])
	    flag=false;
	}
      }else{
	if(str[0]=='o'){
	  if(hai[n-1]==hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}
      }
    }else{
      if(hai[i]>0){
	if(str[i]=='o'){
	  hai[i+1]=hai[i-1];
	}else{
	  hai[i+1]=-hai[i-1];
	}
      }else{
	if(str[i]=='o'){
	  hai[i+1]=-hai[i-1];
	}else{
	  hai[i+1]=hai[i-1];
	}
      }
    }
  }
  if(flag){
    for(int i=0;i<n;i++){
      if(hai[i]>0)cout<<'S';
      else cout<<'W';
    }
    cout<<endl;
    return 0;
  }
  for(int i=0;i<n;i++)hai[i]=0;
  flag=true;
  hai[0]=-1;hai[1]=-1;
  for(int i=1;i<n;i++){
    if(i==n-1){
      if(hai[i]>0){
	if(str[i]=='o'){
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]==hai[0])
	    flag=false;
	}
      }else{
	if(str[i]=='o'){
	  if(hai[i-1]==hai[0])
	    flag=false;
	}else{
	  if(hai[i-1]!=hai[0])
	    flag=false;
	}
      }
      if(hai[0]>0){
	if(str[0]=='o'){
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]==hai[1])
	    flag=false;
	}
      }else{
	if(str[0]=='o'){
	  if(hai[n-1]==hai[1])
	    flag=false;
	}else{
	  if(hai[n-1]!=hai[1])
	    flag=false;
	}
      }
    }else{
      if(hai[i]>0){
	if(str[i]=='o'){
	  hai[i+1]=hai[i-1];
	}else{
	  hai[i+1]=-hai[i-1];
	}
      }else{
	if(str[i]=='o'){
	  hai[i+1]=-hai[i-1];
	}else{
	  hai[i+1]=hai[i-1];
	}
      }
    }
  }
  if(flag){
    for(int i=0;i<n;i++){
      if(hai[i]>0)cout<<'S';
      else cout<<'W';
    }
    cout<<endl;
    return 0;
  }
  cout<<-1<<endl;
  return 0;
}


Measured memory_bytes: 1408