using System;
using System.Linq;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
 
public class Program
{
    public void Proc() {
        Reader.IsDebug = false;
        int totalCount = int.Parse(Reader.ReadLine());
        this.IsSame = Reader.ReadLine().Select(a=>a=='o').ToArray();
        List<Nullable<bool>[]> list = new List<Nullable<bool>[]>();
        list.Add(new Nullable<bool>[totalCount]);
        list[0][0] = false;
        list[0][1] = false;
        list.Add(new Nullable<bool>[totalCount]);
        list[1][0] = false;
        list[1][1] = true;
        list.Add(new Nullable<bool>[totalCount]);
        list[2][0] = true;
        list[2][1] = false;
        list.Add(new Nullable<bool>[totalCount]);
        list[3][0] = true;
        list[3][1] = true;

        foreach(Nullable<bool>[] l in list) {
            string ans = this.GetAns(l);
            if(ans.Length > 0) {
                Console.WriteLine(ans);
                return;
            }
        }
        Console.WriteLine("-1");
    }

    private bool[] IsSame;
    private string GetAns(Nullable<bool>[] isWolf) {
        for(int i=2; i<isWolf.Length; i++) {
            if(isWolf[i-1].Value) {
                if(IsSame[i-1]) {
                    isWolf[i] = !isWolf[i-2].Value;
                } else {
                    isWolf[i] = isWolf[i-2].Value;
                }
            } else {
                if(IsSame[i-1]) {
                    isWolf[i] = isWolf[i-2].Value;
                } else {
                    isWolf[i] = !isWolf[i-2].Value;
                }
            }
        }
        if(isWolf[0].Value) {
            if(IsSame[0]) {
                if(isWolf[1].Value == isWolf.Last().Value) {
                    return string.Empty;
                }
            } else {
                if(isWolf[1].Value != isWolf.Last().Value) {
                    return string.Empty;
                }                
            }
        } else {
            if(IsSame[0]) {
                if(isWolf[1].Value != isWolf.Last().Value) {
                    return string.Empty;
                }
            } else {
                if(isWolf[1].Value == isWolf.Last().Value) {
                    return string.Empty;
                }                
            }
        }
        if(isWolf.Last().Value) {
            if(IsSame.Last()) {
                if(isWolf[0].Value == isWolf[isWolf.Length-2].Value) {
                    return string.Empty;
                }
            } else {
                if(isWolf[0].Value != isWolf[isWolf.Length-2].Value) {
                    return string.Empty;
                }                
            }
        } else {
            if(IsSame.Last()) {
                if(isWolf[0].Value != isWolf[isWolf.Length-2].Value) {
                    return string.Empty;
                }
            } else {
                if(isWolf[0].Value == isWolf[isWolf.Length-2].Value) {
                    return string.Empty;
                }                
            }
        }
        StringBuilder ans = new StringBuilder();
        for(int i=0; i<isWolf.Length; i++) {
            if(isWolf[i].Value) {
                ans.Append("W");
            } else {
                ans.Append("S");
            }
        }
        return ans.ToString();
    }


    public class Reader {
        public static bool IsDebug = true;
        private static System.IO.StringReader SReader;
        private static string InitText = @"



3
oox



";
        public static string ReadLine() {
            if(IsDebug) {
                if(SReader == null) {
                    SReader = new System.IO.StringReader(InitText.Trim());
                }
                return SReader.ReadLine();
            } else {
                return Console.ReadLine();
            }
        }
    }
    public static void Main(string[] args)
    {
        Program prg = new Program();
        prg.Proc();
    }
}


Measured memory_bytes: 15584