#include <iostream>
using namespace std;
bool x=1,dp[100001],ans=0;
long long int n;
char a[100001];
int main()
{
	cin>> n>> a;
	while(1)
	{
		dp[0]=0;dp[1]=0;
		for(int i=2;i<n;i++)
		{
			if(dp[i-1]==0&&a[i-1]=='o'||dp[i-1]==1&&a[i-1]=='x')
			{
				if(dp[i-2]==0)dp[i]=0;
				else dp[i]=1;
			}
			if(dp[i-1]==0&&a[i-1]=='x'||dp[i-1]==1&&a[i-1]=='o')
			{
				if(dp[i-2]==0)dp[i]=1;
				else dp[i]=0;
			}
		}
		if((dp[n-1]==0&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='x')&&(dp[0]==0&&dp[1]==0&&dp[n-1]==0&&a[0]=='o'||dp[0]==0&&dp[1]==1&&dp[n-1]==1&&a[0]=='o'||dp[0]==1&&dp[1]==1&&dp[n-1]==0&&a[0]=='o'||dp[0]==1&&dp[1]==0&&dp[n-1]==1&&a[0]=='o'||dp[0]==0&&dp[1]==0&&dp[n-1]==1&&a[0]=='x'||dp[0]==0&&dp[1]==1&&dp[n-1]==0&&a[0]=='x'||dp[0]==1&&dp[1]==1&&dp[n-1]==1&&a[0]=='x'||dp[0]==1&&dp[1]==0&&dp[n-1]==0&&a[0]=='x'))
		{
			ans=1;
			break;
		}
		dp[0]=1;dp[1]=0;
		for(int i=2;i<=n;i++)
		{
			if(dp[i-1]==0&&a[i-1]=='o'||dp[i-1]==1&&a[i-1]=='x')
			{
				if(dp[i-2]==0)dp[i]=0;
				else dp[i]=1;
			}
			if(dp[i-1]==0&&a[i-1]=='x'||dp[i-1]==1&&a[i-1]=='o')
			{
				if(dp[i-2]==0)dp[i]=1;
				else dp[i]=0;
			}
		}
		if((dp[n-1]==0&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='x')&&(dp[0]==0&&dp[1]==0&&dp[n-1]==0&&a[0]=='o'||dp[0]==0&&dp[1]==1&&dp[n-1]==1&&a[0]=='o'||dp[0]==1&&dp[1]==1&&dp[n-1]==0&&a[0]=='o'||dp[0]==1&&dp[1]==0&&dp[n-1]==1&&a[0]=='o'||dp[0]==0&&dp[1]==0&&dp[n-1]==1&&a[0]=='x'||dp[0]==0&&dp[1]==1&&dp[n-1]==0&&a[0]=='x'||dp[0]==1&&dp[1]==1&&dp[n-1]==1&&a[0]=='x'||dp[0]==1&&dp[1]==0&&dp[n-1]==0&&a[0]=='x'))
		{
			ans=1;
			break;
		}
		dp[0]=0;dp[1]=1;
		for(int i=2;i<=n;i++)
		{
			if(dp[i-1]==0&&a[i-1]=='o'||dp[i-1]==1&&a[i-1]=='x')
			{
				if(dp[i-2]==0)dp[i]=0;
				else dp[i]=1;
			}
			if(dp[i-1]==0&&a[i-1]=='x'||dp[i-1]==1&&a[i-1]=='o')
			{
				if(dp[i-2]==0)dp[i]=1;
				else dp[i]=0;
			}
		}
		if((dp[n-1]==0&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='x')&&(dp[0]==0&&dp[1]==0&&dp[n-1]==0&&a[0]=='o'||dp[0]==0&&dp[1]==1&&dp[n-1]==1&&a[0]=='o'||dp[0]==1&&dp[1]==1&&dp[n-1]==0&&a[0]=='o'||dp[0]==1&&dp[1]==0&&dp[n-1]==1&&a[0]=='o'||dp[0]==0&&dp[1]==0&&dp[n-1]==1&&a[0]=='x'||dp[0]==0&&dp[1]==1&&dp[n-1]==0&&a[0]=='x'||dp[0]==1&&dp[1]==1&&dp[n-1]==1&&a[0]=='x'||dp[0]==1&&dp[1]==0&&dp[n-1]==0&&a[0]=='x'))
		{
			ans=1;
			break;
		}
		dp[0]=1;dp[1]=1;
		for(int i=2;i<=n;i++)
		{
			if(dp[i-1]==0&&a[i-1]=='o'||dp[i-1]==1&&a[i-1]=='x')
			{
				if(dp[i-2]==0)dp[i]=0;
				else dp[i]=1;
			}
			if(dp[i-1]==0&&a[i-1]=='x'||dp[i-1]==1&&a[i-1]=='o')
			{
				if(dp[i-2]==0)dp[i]=1;
				else dp[i]=0;
			}
		}
		if((dp[n-1]==0&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='o'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='o'||dp[n-1]==0&&dp[0]==0&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==0&&dp[0]==1&&dp[n-2]==0&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==1&&dp[n-2]==1&&a[n-1]=='x'||dp[n-1]==1&&dp[0]==0&&dp[n-2]==0&&a[n-1]=='x')&&(dp[0]==0&&dp[1]==0&&dp[n-1]==0&&a[0]=='o'||dp[0]==0&&dp[1]==1&&dp[n-1]==1&&a[0]=='o'||dp[0]==1&&dp[1]==1&&dp[n-1]==0&&a[0]=='o'||dp[0]==1&&dp[1]==0&&dp[n-1]==1&&a[0]=='o'||dp[0]==0&&dp[1]==0&&dp[n-1]==1&&a[0]=='x'||dp[0]==0&&dp[1]==1&&dp[n-1]==0&&a[0]=='x'||dp[0]==1&&dp[1]==1&&dp[n-1]==1&&a[0]=='x'||dp[0]==1&&dp[1]==0&&dp[n-1]==0&&a[0]=='x'))
		{
			ans=1;
			break;
		}
		break;
	}
	if(ans==1)
	for(int i=0;i<n;i++)
	{
		if(dp[i]==0)cout << "S";
		else cout << "W";
	}
	else cout << "-1";
	cout <<"\n";
}

Measured memory_bytes: 512