output_description: Print the answer.
  
  * * *
input_description: The input is given from Standard Input in the following format:
  
      
      
      N
attempt: def main():
      N = int(input())
      s = input()
  
      arr = [""] * N
      for i in range(N):
          if s[i] == "x":
              arr[i] = "S"
  
      cur = "S"
      ind = 0
      while ind < N:
          while ind < N and s[ind] != "x":
              arr[ind] = cur
              ind += 1
          if cur == "S":
              cur = "W"
          else:
              cur = "S"
  
          if ind >= N:
              break
  
          if s[ind] == "x":
              ind += 1
  
          while ind < N and s[ind] == "x":
              arr[ind] = cur
              if cur == "S":
                  cur = "W"
              else:
                  cur = "S"
              ind += 1
  
          arr[ind - 1] = "S"
          if arr[ind - 2] == "S":
              cur = "W"
          else:
              cur = "S"
          if ind >= N:
              break
  
      if s[N - 1] == "o":
          if arr[N - 1] == "S" and arr[N - 2] == arr[0]:
              print("".join(arr))
          elif arr[N - 1] == "W" and arr[N - 2] != arr[0]:
              print("".join(arr))
          else:
              print("-1")
      else:
          if arr[N - 1] == "W" and arr[N - 2] == arr[0]:
              print("".join(arr))
          elif arr[N - 1] == "S" and arr[N - 2] != arr[0]:
              print("".join(arr))
          else:
              print("-1")
  
  
  main()
  
problem_description: Statement
  
  Snuke has a favorite restaurant.
  
  The price of any meal served at the restaurant is 800 yen (the currency of
  Japan), and each time a customer orders 15 meals, the restaurant pays 200 yen
  back to the customer.
  
  So far, Snuke has ordered N meals at the restaurant. Let the amount of money
  Snuke has paid to the restaurant be x yen, and let the amount of money the
  restaurant has paid back to Snuke be y yen. Find x-y.
samples: [{"input": "20", "output": "15800\n    \n\nSo far, Snuke has paid 16000 yen, and the restaurant has paid back 200 yen.\nThus, the answer is 15800.\n\n* * *"}, {"input": "60", "output": "47200\n    \n\nSnuke has paid 48000 yen for 60 meals, and the restaurant has paid back 800\nyen."}]