using System;

namespace AtCoder {
    class CircleList<T> {
        T[] circle_list;

        public int Length {
            get {
                return circle_list.Length;
            }
        }

        public CircleList(int length){
            circle_list = new T[length];
        }

        public CircleList(T[] char_array) {
            circle_list = char_array;
        }

        public T this[int index] {
            get {
                return circle_list[index % Length];
            }
            set {
                circle_list[index % Length] = value;
            }
        }

        public void Print() {
            foreach (T t in circle_list) Console.Write(t);
            Console.WriteLine();
        }
    }



    class Program {
        static void Main() {
            string input = Console.ReadLine();
            int count = int.Parse(input);
            input = Console.ReadLine();

            CircleList<char> declares = new CircleList<char>(input.ToCharArray());
            CircleList<char>  animals = new CircleList<char>(declares.Length);


            // 最初の２頭をSSと仮定
            animals[0] = 'S';
            animals[1] = 'S';
            if (Solve(declares, animals)) return;

            // 最初の２頭をSWと仮定
            animals[0] = 'S';
            animals[1] = 'W';
            if (Solve(declares, animals)) return;

            // 最初の２頭をWSと仮定
            animals[0] = 'W';
            animals[1] = 'S';
            if (Solve(declares, animals)) return;

            // 最初の２頭をWWと仮定
            animals[0] = 'W';
            animals[1] = 'W';
            if (Solve(declares, animals)) return;

            Console.WriteLine(-1);
        }

        static bool Solve(CircleList<char> declares, CircleList<char> animals) {
            for (int i = 2; i < animals.Length * 2; i++) {
                animals[i] = GuessNextAnimal(animals[i - 1], declares[i - 1], animals[i - 2]);
            }
            if (CheckValidity(declares, animals)) {
                animals.Print();
                return true;
            }
            return false;
        }
                
        static char GuessNextAnimal(char current_animal, char current_declare, char previous_animal) {
            switch (current_animal) {
                case 'S':
                    switch (current_declare) {
                        case 'o':
                            switch (previous_animal) {
                                case 'S':
                                    return 'S';
                                case 'W':
                                    return 'W';
                            }
                            break;
                        case 'x':
                            switch (previous_animal) {
                                case 'S':
                                    return 'W';                                    
                                case 'W':
                                    return 'S';
                            }
                            break;
                    }
                    break;
                case 'W':
                    switch (current_declare) {
                        case 'o':
                            switch (previous_animal) {
                                case 'S':
                                    return 'W';
                                case 'W':
                                    return 'S';
                            }
                            break;
                        case 'x':
                            switch (previous_animal) {
                                case 'S':
                                    return 'S';
                                case 'W':
                                    return 'W';
                            }
                            break;
                    }
                    break;
            }
            return ' ';
        }

        static bool CheckValidity(CircleList<char> declares, CircleList<char> animals) {
            for(int i = 1; i <= declares.Length + 1; i++) {
                if(animals[i + 1] == GuessNextAnimal(animals[i], declares[i], animals[i - 1])){
                    // trueなら何もしない
                } else {
                    return false;
                }
            }
            return true;
        }
    }
}

Measured memory_bytes: 17392