#include <stdio.h>

int main(){
	int n;
	scanf("%d",&n);
	
	char in[n+1];
	char out[n+1];
	int s_ok,w_ok;
	int i;
	
	scanf("%s",in);
	out[n] = '\0';
	
	s_ok = 1;
	out[0] = 'S';
	out[1] = 'S';
	for(i=1;i<n-1;i++){
		if((in[i]=='o'&&out[i]=='S')||(in[i]=='x'&&out[i]=='W')) out[i+1] = out[i-1];
		if((in[i]=='x'&&out[i]=='S')||(in[i]=='o'&&out[i]=='W')){
			if(out[i-1] == 'S') out[i+1] = 'W';
			else if(out[i-1] == 'W') out[i+1] = 'S';
		}
	}
	if(out[0]=='S'&&((in[0]=='o'&&out[n-1]!=out[1])||(in[0]=='x'&&out[n-1]==out[1]))){
		s_ok = 0;
	}
	if(out[0]=='W'&&((in[0]=='o'&&out[n-1]==out[1])||(in[0]=='x'&&out[n-1]!=out[1]))){
		s_ok = 0;
	}
	for(i=1;i<n-1;i++){
		if(out[i]=='S'&&((in[i]=='o'&&out[i-1]!=out[i+1])||(in[i]=='x'&&out[i-1]==out[i+1]))){
			s_ok = 0;
		}
		if(out[i]=='W'&&((in[i]=='o'&&out[i-1]==out[i+1])||(in[i]=='x'&&out[i-1]!=out[i+1]))){
			s_ok = 0;
		}
	}
	if(out[n-1]=='S'&&((in[n-1]=='o'&&out[n-2]!=out[0])||(in[n-1]=='x'&&out[n-2]==out[0]))){
		s_ok = 0;
	}
	if(out[n-1]=='W'&&((in[n-1]=='o'&&out[n-2]==out[0])||(in[n-1]=='x'&&out[n-2]!=out[0]))){
		s_ok = 0;
	}
	
	if(s_ok == 1){
		printf("%s\n",out);
		return 0;
	}
	
	s_ok = 1;	
	out[1] = 'W';
	for(i=1;i<n-1;i++){
		if((in[i]=='o'&&out[i]=='S')||(in[i]=='x'&&out[i]=='W')) out[i+1] = out[i-1];
		if((in[i]=='x'&&out[i]=='S')||(in[i]=='o'&&out[i]=='W')){
			if(out[i-1] == 'S') out[i+1] = 'W';
			else if(out[i-1] == 'W') out[i+1] = 'S';
		}
	}
	if(out[0]=='S'&&((in[0]=='o'&&out[n-1]!=out[1])||(in[0]=='x'&&out[n-1]==out[1]))){
		s_ok = 0;
	}
	if(out[0]=='W'&&((in[0]=='o'&&out[n-1]==out[1])||(in[0]=='x'&&out[n-1]!=out[1]))){
		s_ok = 0;
	}
	for(i=1;i<n-1;i++){
		if(out[i]=='S'&&((in[i]=='o'&&out[i-1]!=out[i+1])||(in[i]=='x'&&out[i-1]==out[i+1]))){
			s_ok = 0;
		}
		if(out[i]=='W'&&((in[i]=='o'&&out[i-1]==out[i+1])||(in[i]=='x'&&out[i-1]!=out[i+1]))){
			s_ok = 0;
		}
	}
	if(out[n-1]=='S'&&((in[n-1]=='o'&&out[n-2]!=out[0])||(in[n-1]=='x'&&out[n-2]==out[0]))){
		s_ok = 0;
	}
	if(out[n-1]=='W'&&((in[n-1]=='o'&&out[n-2]==out[0])||(in[n-1]=='x'&&out[n-2]!=out[0]))){
		s_ok = 0;
	}
	
	if(s_ok == 1){
		printf("%s\n",out);
		return 0;
	}
	
	
	w_ok = 1;
	out[0] = 'W';
	out[1] = 'S';
	for(i=1;i<n-1;i++){
		if((in[i]=='o'&&out[i]=='S')||(in[i]=='x'&&out[i]=='W')) out[i+1] = out[i-1];
		if((in[i]=='x'&&out[i]=='S')||(in[i]=='o'&&out[i]=='W')){
			if(out[i-1] == 'S') out[i+1] = 'W';
			else if(out[i-1] == 'W') out[i+1] = 'S';
		}
	}
	
	if(out[0]=='S'&&((in[0]=='o'&&out[n-1]!=out[1])||(in[0]=='x'&&out[n-1]==out[1]))){
		w_ok = 0;
	}
	if(out[0]=='W'&&((in[0]=='o'&&out[n-1]==out[1])||(in[0]=='x'&&out[n-1]!=out[1]))){
		w_ok = 0;
	}
	for(i=1;i<n-1;i++){
		if(out[i]=='S'&&((in[i]=='o'&&out[i-1]!=out[i+1])||(in[i]=='x'&&out[i-1]==out[i+1]))){
			w_ok = 0;
		}
		if(out[i]=='W'&&((in[i]=='o'&&out[i-1]==out[i+1])||(in[i]=='x'&&out[i-1]!=out[i+1]))){
			w_ok = 0;
		}
	}
	if(out[n-1]=='S'&&((in[n-1]=='o'&&out[n-2]!=out[0])||(in[n-1]=='x'&&out[n-2]==out[0]))){
		w_ok = 0;
	}
	if(out[n-1]=='W'&&((in[n-1]=='o'&&out[n-2]==out[0])||(in[n-1]=='x'&&out[n-2]!=out[0]))){
		w_ok = 0;
	}
	
	if(w_ok == 1){
		printf("%s\n",out);
		return 0;
	}
	
	w_ok = 1;
	out[1] = 'W';
	for(i=1;i<n-1;i++){
		if((in[i]=='o'&&out[i]=='S')||(in[i]=='x'&&out[i]=='W')) out[i+1] = out[i-1];
		if((in[i]=='x'&&out[i]=='S')||(in[i]=='o'&&out[i]=='W')){
			if(out[i-1] == 'S') out[i+1] = 'W';
			else if(out[i-1] == 'W') out[i+1] = 'S';
		}
	}
	if(out[0]=='S'&&((in[0]=='o'&&out[n-1]!=out[1])||(in[0]=='x'&&out[n-1]==out[1]))){
		w_ok = 0;
	}
	if(out[0]=='W'&&((in[0]=='o'&&out[n-1]==out[1])||(in[0]=='x'&&out[n-1]!=out[1]))){
		w_ok = 0;
	}
	for(i=1;i<n-1;i++){
		if(out[i]=='S'&&((in[i]=='o'&&out[i-1]!=out[i+1])||(in[i]=='x'&&out[i-1]==out[i+1]))){
			w_ok = 0;
		}
		if(out[i]=='W'&&((in[i]=='o'&&out[i-1]==out[i+1])||(in[i]=='x'&&out[i-1]!=out[i+1]))){
			w_ok = 0;
		}
	}
	if(out[n-1]=='S'&&((in[n-1]=='o'&&out[n-2]!=out[0])||(in[n-1]=='x'&&out[n-2]==out[0]))){
		w_ok = 0;
	}
	if(out[n-1]=='W'&&((in[n-1]=='o'&&out[n-2]==out[0])||(in[n-1]=='x'&&out[n-2]!=out[0]))){
		w_ok = 0;
	}
	
	if(w_ok == 1){
		printf("%s\n",out);
		return 0;
	}
	
	
	
	if(s_ok==0 && w_ok==0) printf("%d\n",-1);
	
	return 0;
}

Measured memory_bytes: 512