#include "iostream"
#include "climits"
#include "list"
#include "queue"
#include "stack"
#include "set"
#include "functional"
#include "algorithm"
#include "math.h"
#include "utility"
#include "map"

using namespace std;
const long long int MOD = 1000000007;

long long int N;
long long int box;
int num[100000];
char letter[100001];


int main() {
	cin >> N;
	cin >> letter;

	num[0] = 0;
	num[N-1] = 0;
	for (int i = 0; i < N - 2; i++) {
		if (letter[i] == 'o') {
			if (num[i]) {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
			else {
				num[i + 1] = num[(N + i - 1) % N];
			}
		}
		else {
			if (num[i]) {
				num[i + 1] = num[(N + i - 1) % N];
			}
			else {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
		}
	}
	if (letter[N - 2] == 'o') {
		if (num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}
	else {
		if (!num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}

	num[0] = 0;
	num[N - 1] = 1;
	for (int i = 0; i < N - 2; i++) {
		if (letter[i] == 'o') {
			if (num[i]) {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
			else {
				num[i + 1] = num[(N + i - 1) % N];
			}
		}
		else {
			if (num[i]) {
				num[i + 1] = num[(N + i - 1) % N];
			}
			else {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
		}
	}
	if (letter[N - 2] == 'o') {
		if (num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}
	else {
		if (!num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}

	num[0] = 1;
	num[N - 1] = 0;
	for (int i = 0; i < N - 2; i++) {
		if (letter[i] == 'o') {
			if (num[i]) {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
			else {
				num[i + 1] = num[(N + i - 1) % N];
			}
		}
		else {
			if (num[i]) {
				num[i + 1] = num[(N + i - 1) % N];
			}
			else {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
		}
	}
	if (letter[N - 2] == 'o') {
		if (num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}
	else {
		if (!num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}
	
	num[0] = 1;
	num[N - 1] = 1;
	for (int i = 0; i < N - 2; i++) {
		if (letter[i] == 'o') {
			if (num[i]) {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
			else {
				num[i + 1] = num[(N + i - 1) % N];
			}
		}
		else {
			if (num[i]) {
				num[i + 1] = num[(N + i - 1) % N];
			}
			else {
				num[i + 1] = (num[(N + i - 1) % N] - 1)*(-1);
			}
		}
	}
	if (letter[N - 2] == 'o') {
		if (num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}
	else {
		if (!num[N - 2]) {
			if (num[N - 3] != num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
		else {
			if (num[N - 3] == num[N - 1]) {
				if (letter[N - 1] == 'o') {
					if (num[N - 1]) {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
				else {
					if (num[N - 1]) {
						if (num[N - 2] == num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
					else {
						if (num[N - 2] != num[0]) {
							for (int i = 0; i < N; i++) {
								if (num[i])cout << "W";
								else cout << "S";
							}
							cout << endl;
							return 0;
						}
					}
				}
			}
		}
	}

	cout << "-1\n";
	return 0;
}


Measured memory_bytes: 768