n=int(input())
arr=input()
ans=['S']*n
cnt=0
for i in range(1,n-1):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        ans[(i+1)%n]=ans[i-1]
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
flag=False
for i in range(n):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        break
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        break
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
else:
  flag=True
if flag==True and cnt==0:
  print(''.join(map(str,ans)))
  cnt+=1
ans=['W']*n
for i in range(1,n-1):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        ans[(i+1)%n]=ans[i-1]
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
flag=False
for i in range(n):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        break
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        break
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
else:
  flag=True
if flag==True and cnt==0:
  print(''.join(map(str,ans)))
  cnt+=1
ans=['S']*n
ans[1]='W'
for i in range(1,n-1):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        ans[(i+1)%n]=ans[i-1]
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
flag=False
for i in range(n):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        break
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        break
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
else:
  flag=True
if flag==True and cnt==0:
  print(''.join(map(str,ans)))
  cnt+=1
ans=['W']*n
ans[1]='S'
for i in range(1,n-1):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        ans[(i+1)%n]=ans[i-1]
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        if ans[(i+1)%n]=='S':
          ans[(i+1)%n]='W'
        else:
          ans[(i+1)%n]='S'
flag=False
for i in range(n):
  if arr[i]=='o':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
    elif ans[i]=='W':
      if ans[i-1]!=ans[(i+1)%n]:
        continue
      else:
        break
  elif arr[i]=='x':
    if ans[i]=='S':
      if ans[i-1]==ans[(i+1)%n]:
        break
      else:
        continue
    elif ans[i]=='W':
      if ans[i-1]==ans[(i+1)%n]:
        continue
      else:
        break
else:
  flag=True
if flag==True and cnt==0:
  print(''.join(map(str,ans)))
  cnt+=1
if cnt==0:
  print(-1)

Measured memory_bytes: 5864