//
// ABC055D
// URL : https://atcoder.jp/contests/abc055/tasks/abc055_d
// 
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Text;

namespace AtCoder
{
    class ABC055D
    {
        static readonly string NOT_FOUND = "-1";
        static readonly char SHEEP = 'S';
        static readonly char WOLF = 'W';
        static readonly char CORRECT = 'o';
        static readonly char WRONG = 'x';
        static void Main(string[] args)
        {
            preprocess();
            long N = long.Parse(Console.ReadLine());
            string s = Console.ReadLine();

            var ans = check(N,s);

            Console.WriteLine(ans);
            Console.Out.Flush();
        }

        static string check(long N, string inputString)
        {
            bool found = false;
            var firstAnimals =  new char[] { SHEEP, SHEEP,  WOLF, WOLF };
            var secondAnimals = new char[] { SHEEP, WOLF, SHEEP, WOLF };
            char[] ring = new char[N];
            for (int i = 0; i < 4; ++i)
            {
                createRing(N, inputString, firstAnimals[i], secondAnimals[i], out ring);
                if(judgeRing(ring, inputString, firstAnimals[i], secondAnimals[i]) == true)
                {
                    found = true;
                    break;
                }
            }
            return (found) ? new string(ring) : NOT_FOUND;
        }

        public static void createRing(long N, string inputString, char firstAnimal, char SecondAnimal, out char[] ring)
        {
            ring = new char[(int)N];
            ring[0] = firstAnimal;
            ring[1] = SecondAnimal;
            //動物列を生成
            for (int i = 1; i < N; ++i)
            {
                //index計算
                int preIdx = i - 1;
                int nextIdx = (i + 1 == N) ? 0 : i+1;

                //次の動物を決定
                var nextAnimal = decideAnimal(ring[i], ring[preIdx], inputString[i]);
                ring[nextIdx] = nextAnimal;
            }
        }
        /// <summary>
        /// 動物列が仮定に沿っているか判定する
        /// </summary>
        /// <param name="ring">検査動物列</param>
        /// <param name="inputString">入力文字列</param>
        /// <returns></returns>
        public static bool judgeRing(char[] ring, string inputString, char first, char second)
        {
            var finalIdx = ring.Length - 1;
            //作られた動物列から、仮定として与えた部分を推測し、それが動物列作成時に与えた仮定と一致しているか見る
            //動物列途中(1,2番目以外)の状況は仮定と一致するように作成しているため、問題ない
            var Animal1st = decideAnimal(ring[finalIdx], ring[finalIdx-1], inputString[finalIdx]);
            var Animal2nd = decideAnimal(ring[0], ring[finalIdx], inputString[0]);
            return Animal1st == first && Animal2nd == second;
        }
        /// <summary>
        /// 動物を決定する
        /// </summary>
        /// <param name="Animal">対象となる動物。trueならSHEEP, falseならWOLF</param>
        /// <param name="PreAnimal">対象の前に並んでいる動物。trueならSHEEP, falseならWOLF</param>
        /// <param name="call">trueなら'o', falseなら'x'</param>
        /// <returns></returns>
        public static char decideAnimal(char Animal, char PreAnimal, char call)
        {
            //対象となる動物が
            if (Animal == SHEEP)//羊の場合
            {
                if (call == CORRECT)
                {
                    return PreAnimal;
                }
                else
                {//call == false
                    return (PreAnimal == SHEEP) ? WOLF : SHEEP;
                }
            }
            else
            { //Animal == false => Wolf. 狼の場合
                if (call == CORRECT)
                {
                    return (PreAnimal == SHEEP) ? WOLF : SHEEP;
                }
                else
                {
                    return PreAnimal;
                }
            }
        }

        //---------------------------------------------------------------------------------
        /// <summary>
        /// 
        /// </summary>
        public static void preprocess()
        {
            //出力高速化
            var sw = new StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
            Console.SetOut(sw);
        }


        /// <summary>
        /// 与えられた数が素数かどうかを計算する
        /// </summary>
        /// <param name="num">対象数</param>
        /// <returns>true:素数, false:素数ではない(合成数)</returns>
        public static bool isPrime(int num)
        {
            if (num < 2) return false;
            else if (num == 2) return true;
            else if (num % 2 == 0) return false;

            double sqrtNum = Math.Sqrt(num);
            for (int i = 3; i <= sqrtNum; i += 2)
            {
                if (num % i == 0)
                {
                    return false;
                }
            }
            return true;
        }

        /// <summary>
        /// 順列mPnを計算する
        /// </summary>
        /// <param name="m"></param>
        /// <param name="n"></param>
        /// <returns></returns>
        public static long Permutation(long m, long n)
        {
            long ret = 1;
            for(var i = 0; i < n; ++i)
            {
                ret *= m - i;
            }
            return ret;
        }
        /// <summary>
        /// 組み合わせmCnを計算する
        /// </summary>
        /// <param name="m"></param>
        /// <param name="n"></param>
        /// <returns></returns>
        public static long Combination(long m, long n)
        {
            if(m == n || n == 0)
            {
                return 1;
            }
            long ans = 1;
            for(var i = 0; i <= n; ++i)
            {
                ans *= (m - i + 1) / i;
            }
            return ans;
        }

        static long Gcd(long m, long n)
        {
            if (n == 0) return m;
            return Gcd(n, m % n);
        }

        static long Lcm(long m, long n)
        {
            var gcd = Gcd(m, n);
            //return (m * n) / gcd;
            return m / gcd * n;//桁あふれ対策
        }
    }
}



Measured memory_bytes: 13212