using Yorukatsu043.Questions;
using Yorukatsu043.Extensions;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Yorukatsu043.Questions
{
    /// <summary>
    /// ARC069 D
    /// </summary>
    public class QuestionE : AtCoderQuestionBase
    {
        public override IEnumerable<object> Solve(TextReader inputStream)
        {
            var n = inputStream.ReadInt();
            var statements = inputStream.ReadLine().Select(c => c == 'x').ToArray();

            bool[] actual;

            if (Check(statements, false, false, out actual))
            {
                yield return actual.ToSheepOrWolf();
            }
            else if (Check(statements, true, false, out actual))
            {
                yield return actual.ToSheepOrWolf();
            }
            else if (Check(statements, false, true, out actual))
            {
                yield return actual.ToSheepOrWolf();
            }
            else if (Check(statements, true, true, out actual))
            {
                yield return actual.ToSheepOrWolf();
            }
            else
            {
                yield return -1;
            }
        }


        bool Check(bool[] statements, bool first, bool second, out bool[] actual)
        {
            actual = new bool[statements.Length];
            actual[0] = first;
            actual[1] = second;

            for (int i = 1; i + 1 < statements.Length; i++)
            {
                actual[i + 1] = statements[i] ^ actual[i - 1] ^ actual[i];
            }

            var length = actual.Length;
            return ((statements[0] ^ actual[0]) == (actual[length - 1] ^ actual[1])) && ((statements[length - 1] ^ actual[length - 1]) == (actual[length - 2] ^ actual[0]));
        }
    }

    public static class ZooExtension
    {
        public static string ToSheepOrWolf(this IEnumerable<bool> isWolf) => string.Concat(isWolf.Select(b => b ? 'W' : 'S'));
    }
}


namespace Yorukatsu043
{
    class Program
    {
        static void Main(string[] args)
        {
            IAtCoderQuestion question = new QuestionE();    // 問題に合わせて書き換え
            var answers = question.Solve(Console.In);
            foreach (var answer in answers)
            {
                Console.WriteLine(answer);
            }
        }
    }
}

#region Base Classes

namespace Yorukatsu043.Questions
{

    public interface IAtCoderQuestion
    {
        IEnumerable<object> Solve(string input);
        IEnumerable<object> Solve(TextReader inputStream);
    }

    public abstract class AtCoderQuestionBase : IAtCoderQuestion
    {
        public IEnumerable<object> Solve(string input)
        {
            var stream = new MemoryStream(Encoding.Unicode.GetBytes(input));
            var reader = new StreamReader(stream, Encoding.Unicode);

            return Solve(reader);
        }

        public abstract IEnumerable<object> Solve(TextReader inputStream);
    }

}

#endregion

#region Extensions

namespace Yorukatsu043.Extensions
{
    internal static class TextReaderExtensions
    {
        internal static int ReadInt(this TextReader reader) => int.Parse(ReadString(reader));
        internal static long ReadLong(this TextReader reader) => long.Parse(ReadString(reader));
        internal static double ReadDouble(this TextReader reader) => double.Parse(ReadString(reader));
        internal static string ReadString(this TextReader reader) => reader.ReadLine();

        internal static int[] ReadIntArray(this TextReader reader, char separator = ' ') => ReadStringArray(reader, separator).Select(int.Parse).ToArray();
        internal static long[] ReadLongArray(this TextReader reader, char separator = ' ') => ReadStringArray(reader, separator).Select(long.Parse).ToArray();
        internal static double[] ReadDoubleArray(this TextReader reader, char separator = ' ') => ReadStringArray(reader, separator).Select(double.Parse).ToArray();
        internal static string[] ReadStringArray(this TextReader reader, char separator = ' ') => reader.ReadLine().Split(separator);
    }
}

#endregion

Measured memory_bytes: 15584