import sys
n=int(input())
s=input()
ans=['S','S']
for i in range(2,n):
  if (s[i-1]=='o' and ans[i-1]=='S') or (s[i-1]=='x' and ans[i-1]=='W'):
    ans.append(ans[i-2])
  else:
    if ans[i-2]=='S':
      ans.append('W')
    else:
      ans.append('S')
success=0
if ((s[-1]=='o' and ans[-1]=='S') or (s[-1]=='x' and ans[-1]=='W')) and (ans[0]==ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if ((s[-1]=='o' and ans[-1]=='W') or (s[-1]=='x' and ans[-1]=='S')) and (ans[0]!=ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if success==1:
  print(''.join(ans))
  sys.exit()
ans=['S','W']
for i in range(2,n):
  if (s[i-1]=='o' and ans[i-1]=='S') or (s[i-1]=='x' and ans[i-1]=='W'):
    ans.append(ans[i-2])
  else:
    if ans[i-2]=='S':
      ans.append('W')
    else:
      ans.append('S')
success=0
if ((s[-1]=='o' and ans[-1]=='S') or (s[-1]=='x' and ans[-1]=='W')) and (ans[0]==ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if ((s[-1]=='o' and ans[-1]=='W') or (s[-1]=='x' and ans[-1]=='S')) and (ans[0]!=ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if success==1:
  print(''.join(ans))
  sys.exit()
ans=['W','S']
for i in range(2,n):
  if (s[i-1]=='o' and ans[i-1]=='S') or (s[i-1]=='x' and ans[i-1]=='W'):
    ans.append(ans[i-2])
  else:
    if ans[i-2]=='S':
      ans.append('W')
    else:
      ans.append('S')
success=0
if ((s[-1]=='o' and ans[-1]=='S') or (s[-1]=='x' and ans[-1]=='W')) and (ans[0]==ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if ((s[-1]=='o' and ans[-1]=='W') or (s[-1]=='x' and ans[-1]=='S')) and (ans[0]!=ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if success==1:
  print(''.join(ans))
  sys.exit()
ans=['W','W']
for i in range(2,n):
  if (s[i-1]=='o' and ans[i-1]=='S') or (s[i-1]=='x' and ans[i-1]=='W'):
    ans.append(ans[i-2])
  else:
    if ans[i-2]=='S':
      ans.append('W')
    else:
      ans.append('S')
success=0
if ((s[-1]=='o' and ans[-1]=='S') or (s[-1]=='x' and ans[-1]=='W')) and (ans[0]==ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if ((s[-1]=='o' and ans[-1]=='W') or (s[-1]=='x' and ans[-1]=='S')) and (ans[0]!=ans[-2]):
  if ((s[0]=='o' and ans[0]=='S') or (s[0]=='x' and ans[0]=='W')) and (ans[1]==ans[-1]):
    success=1
  if ((s[0]=='o' and ans[0]=='W') or (s[0]=='x' and ans[0]=='S')) and (ans[1]!=ans[-1]):
    success=1
if success==1:
  print(''.join(ans))
  sys.exit()
print(-1)

Measured memory_bytes: 92568