#include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cwchar>
#include <cwctype>
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <array>
#include <atomic>
#include <chrono>
#include <codecvt>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#define all(x) (x).begin(),(x).end()
#pragma GCC optimize("Ofast")
using namespace std;
typedef long long int ll;
typedef long double ld;
const ll INF=(1LL<<62);
const ld pi=acosl((ld)-1);
// const ll mod = 1000000007;
const ll mod = 1234567;
const int dx[4]={0,1,0,-1};
const int dy[4]={1,0,-1,0};
const int ddx[8]={1,0,-1,-1,-1,0,1,1};
const int ddy[8]={1,1,1,0,-1,-1,-1,0};
#define endn "\n"

bool check2(vector<int>&data,string s,ll n){
    bool isOK=true;
    rep(i,n){
        if(s[i]=='o'){
            if(data[i]==0){
                if(data[(i-1+n)%n]!=data[(i+1+n)%n])isOK=false;
            }else{
                if(data[(i-1+n)%n]==data[(i+1+n)%n])isOK=false;  
            }
        }else{
            if(data[i]==1){
                if(data[(i-1+n)%n]!=data[(i+1+n)%n])isOK=false;
            }else{
                if(data[(i-1+n)%n]==data[(i+1+n)%n])isOK=false;  
            }
        }
    }
    return isOK;
}

bool check(ll x,ll y,string s,ll n){
    bool isOK=true;
    vector<int>data(n,-1);
    //0が羊
    data[0]=x;
    data[1]=y;
    rep(i,n){
        if(s[i]=='o'){
            if(data[i]==0){
                //羊
                if(data[(i-1+n)%n]==-1)continue;
                data[(i+1+n)%n]=data[(i-1+n)%n];
            }else if(data[i]==1){
                //狼
                if(data[(i-1+n)%n]==-1)continue;
                data[(i+1+n)%n]=(data[(i-1+n)%n]+3)%2;
            }
        }else{
            if(data[i]==0){
                //羊
                if(data[(i-1+n)%n]==-1)continue;
                data[(i+1+n)%n]=(data[(i-1+n)%n]+3)%2;
            }else if(data[i]==1){
                //狼
                if(data[(i-1+n)%n]==-1)continue;
                data[(i+1+n)%n]=data[(i-1+n)%n];
            }
        }
    }
    if(check2(data,s,n)){
        rep(i,n){
            if(data[i]==0)cout<<"S";
            else cout<<"W";
        }
        cout<<endl;
        return true;
    }
    return false;
}

bool solve(){
    ll n;cin>>n;
    string s;cin>>s;
    rep(i,2)rep(j,2){
        if(check(i,j,s,n))return false;
    }
    cout<<-1<<endl;
    return false;
}

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout<<fixed<<setprecision(30);
    solve();
}


Measured memory_bytes: 1096