#include <bits/stdc++.h>
using namespace std;

void solve(long long N, string s){
  /*
	if (N == 3) {
    if (s == "ooo") {
      cout << "SSS" << endl;
    } else if (s == "xxx") {
      cout << "WWW" << endl;
    } else {
      cout << -1 << endl;
    }
    return;
  }
  if (N == 4) {
    if (s == "oooo") { cout << "SSSS" << endl; }
    else if (s == "xoxx") { cout << "SSSW" << endl; }
    else if (s == "oxxx") { cout << "SSWS" << endl; }
    else if (s == "xxoo") { cout << "SSWW" << endl; }
    else if (s == "xxxo") { cout << "SWSS" << endl; }
    else if (s == "oxox") { cout << "SWSW" << endl; }
    else if (s == "xoox") { cout << "SWWS" << endl; }
    else if (s == "ooxo") { cout << "SWWW" << endl; }

    else if (s == "xxox") { cout << "WSSS" << endl; }
    else if (s == "oxxo") { cout << "WSSW" << endl; }
    else if (s == "xoxo") { cout << "WSWS" << endl; }
    else if (s == "ooox") { cout << "WSWW" << endl; }
    else if (s == "ooxx") { cout << "WWSS" << endl; }
    else if (s == "xooo") { cout << "WWSW" << endl; }
    else if (s == "oxoo") { cout << "WWWS" << endl; }
    else if (s == "xxxx") { cout << "WWWW" << endl; }
    return;
  }
  */
  long long xc = 0, oc = 0;
  for (int i = 0; i < N; i++) {
    if (s[i] == 'x') xc++;
    else if (s[i] == 'o') oc++;
  }

  if (xc == N) {
    for (int i = 0; i < N; i++) {
      cout << "W";
    }
    cout << endl;
    return;
  } else if (oc == N) {
    for (int i = 0; i < N; i++) {
      cout << "S";
    }
    cout << endl;
    return;
  }

  string ans1 = "SS";
  string ans2 = "SW";
  string ans3 = "WS";
  string ans4 = "WW";
  for (int i = 2; i < N; i++) {
    ans1 += " ";
    ans2 += " ";
    ans3 += " ";
    ans4 += " ";
  }

  for (int i = 1; i < N-1; i++) {
    if (s[i] == 'o') {
      if (ans1[i] == 'W') {
        ans1[i+1] = (ans1[i-1] == 'S' ? 'W' : 'S');
      } else if (ans1[i] == 'S') {
        ans1[i+1] = ans1[i-1];
      }
      if (ans2[i] == 'W') {
        ans2[i+1] = (ans2[i-1] == 'S' ? 'W' : 'S');
      } else if (ans2[i] == 'S') {
        ans2[i+1] = ans2[i-1];
      }
      if (ans3[i] == 'W') {
        ans3[i+1] = (ans3[i-1] == 'S' ? 'W' : 'S');
      } else if (ans3[i] == 'S') {
        ans3[i+1] = ans3[i-1];
      }
      if (ans4[i] == 'W') {
        ans4[i+1] = (ans4[i-1] == 'S' ? 'W' : 'S');
      } else if (ans4[i] == 'S') {
        ans4[i+1] = ans4[i-1];
      }
    } else if (s[i] == 'x') {
      if (ans1[i] == 'S') {
        ans1[i+1] = (ans1[i-1] == 'S' ? 'W' : 'S');
      } else if (ans1[i] == 'W') {
        ans1[i+1] = ans1[i-1];
      }
      if (ans2[i] == 'S') {
        ans2[i+1] = (ans2[i-1] == 'S' ? 'W' : 'S');
      } else if (ans2[i] == 'W') {
        ans2[i+1] = ans2[i-1];
      }
      if (ans3[i] == 'S') {
        ans3[i+1] = (ans3[i-1] == 'S' ? 'W' : 'S');
      } else if (ans3[i] == 'W') {
        ans3[i+1] = ans3[i-1];
      }
      if (ans4[i] == 'S') {
        ans4[i+1] = (ans4[i-1] == 'S' ? 'W' : 'S');
      } else if (ans4[i] == 'W') {
        ans4[i+1] = ans4[i-1];
      }
    }
  }
  if (s[0] == 'o') {
    if (s[N-1] == 'o') {
      if (((ans1[0] == 'S' && ans1[N-1] == ans1[1]) || (ans1[0] == 'W' && ans1[N-1] != ans1[1])) && ((ans1[N-1] == 'S' && ans1[N-2] == ans1[0]) || (ans1[N-1] == 'W' && ans1[N-2] != ans1[0]))) { cout << ans1 << endl; return; }
      if (((ans2[0] == 'S' && ans2[N-1] == ans2[1]) || (ans2[0] == 'W' && ans2[N-1] != ans2[1])) && ((ans2[N-1] == 'S' && ans2[N-2] == ans2[0]) || (ans2[N-1] == 'W' && ans2[N-2] != ans2[0]))) { cout << ans2 << endl; return; }
      if (((ans3[0] == 'S' && ans3[N-1] == ans3[1]) || (ans3[0] == 'W' && ans3[N-1] != ans3[1])) && ((ans3[N-1] == 'S' && ans3[N-2] == ans3[0]) || (ans3[N-1] == 'W' && ans3[N-2] != ans3[0]))) { cout << ans3 << endl; return; }
      if (((ans4[0] == 'S' && ans4[N-1] == ans4[1]) || (ans4[0] == 'W' && ans4[N-1] != ans4[1])) && ((ans4[N-1] == 'S' && ans4[N-2] == ans4[0]) || (ans4[N-1] == 'W' && ans4[N-2] != ans4[0]))) { cout << ans4 << endl; return; }
    } else if (s[N-1] == 'x') {
      if (((ans1[0] == 'S' && ans1[N-1] == ans1[1]) || (ans1[0] == 'W' && ans1[N-1] != ans1[1])) && ((ans1[N-1] == 'S' && ans1[N-2] != ans1[0]) || (ans1[N-1] == 'W' && ans1[N-2] == ans1[0]))) { cout << ans1 << endl; return; }
      if (((ans2[0] == 'S' && ans2[N-1] == ans2[1]) || (ans2[0] == 'W' && ans2[N-1] != ans2[1])) && ((ans2[N-1] == 'S' && ans2[N-2] != ans2[0]) || (ans2[N-1] == 'W' && ans2[N-2] == ans2[0]))) { cout << ans2 << endl; return; }
      if (((ans3[0] == 'S' && ans3[N-1] == ans3[1]) || (ans3[0] == 'W' && ans3[N-1] != ans3[1])) && ((ans3[N-1] == 'S' && ans3[N-2] != ans3[0]) || (ans3[N-1] == 'W' && ans3[N-2] == ans3[0]))) { cout << ans3 << endl; return; }
      if (((ans4[0] == 'S' && ans4[N-1] == ans4[1]) || (ans4[0] == 'W' && ans4[N-1] != ans4[1])) && ((ans4[N-1] == 'S' && ans4[N-2] != ans4[0]) || (ans4[N-1] == 'W' && ans4[N-2] == ans4[0]))) { cout << ans4 << endl; return; }
    }
  } else if (s[0] == 'x') {
    if (s[N-1] == 'o') {
      if (((ans1[0] == 'S' && ans1[N-1] != ans1[1]) || (ans1[0] == 'W' && ans1[N-1] == ans1[1])) && ((ans1[N-1] == 'S' && ans1[N-2] == ans1[0]) || (ans1[N-1] == 'W' && ans1[N-2] != ans1[0]))) { cout << ans1 << endl; return; }
      if (((ans2[0] == 'S' && ans2[N-1] != ans2[1]) || (ans2[0] == 'W' && ans2[N-1] == ans2[1])) && ((ans2[N-1] == 'S' && ans2[N-2] == ans2[0]) || (ans2[N-1] == 'W' && ans2[N-2] != ans2[0]))) { cout << ans2 << endl; return; }
      if (((ans3[0] == 'S' && ans3[N-1] != ans3[1]) || (ans3[0] == 'W' && ans3[N-1] == ans3[1])) && ((ans3[N-1] == 'S' && ans3[N-2] == ans3[0]) || (ans3[N-1] == 'W' && ans3[N-2] != ans3[0]))) { cout << ans3 << endl; return; }
      if (((ans4[0] == 'S' && ans4[N-1] != ans4[1]) || (ans4[0] == 'W' && ans4[N-1] == ans4[1])) && ((ans4[N-1] == 'S' && ans4[N-2] == ans4[0]) || (ans4[N-1] == 'W' && ans4[N-2] != ans4[0]))) { cout << ans4 << endl; return; }
    } else {
      if (((ans1[0] == 'S' && ans1[N-1] != ans1[1]) || (ans1[0] == 'W' && ans1[N-1] == ans1[1])) && ((ans1[N-1] == 'S' && ans1[N-2] != ans1[0]) || (ans1[N-1] == 'W' && ans1[N-2] == ans1[0]))) { cout << ans1 << endl; return; }
      if (((ans2[0] == 'S' && ans2[N-1] != ans2[1]) || (ans2[0] == 'W' && ans2[N-1] == ans2[1])) && ((ans2[N-1] == 'S' && ans2[N-2] != ans2[0]) || (ans2[N-1] == 'W' && ans2[N-2] == ans2[0]))) { cout << ans2 << endl; return; }
      if (((ans3[0] == 'S' && ans3[N-1] != ans3[1]) || (ans3[0] == 'W' && ans3[N-1] == ans3[1])) && ((ans3[N-1] == 'S' && ans3[N-2] != ans3[0]) || (ans3[N-1] == 'W' && ans3[N-2] == ans3[0]))) { cout << ans3 << endl; return; }
      if (((ans4[0] == 'S' && ans4[N-1] != ans4[1]) || (ans4[0] == 'W' && ans4[N-1] == ans4[1])) && ((ans4[N-1] == 'S' && ans4[N-2] != ans4[0]) || (ans4[N-1] == 'W' && ans4[N-2] == ans4[0]))) { cout << ans4 << endl; return; }
    }
  }
  cout << -1 << endl;
}

int main(){	
	long long N;
	string s;
	scanf("%lld",&N);
	cin >> s;
	solve(N, s);
	return 0;
}



Measured memory_bytes: 1280