output_description: Print the answer.
  
  * * *
input_description: The input is given from Standard Input in the following format:
  
      
      
      N
attempt: def next_to_you(t, a):
      if a == "o":
          if t[-1] == "S":
              if t[-2] == "W":
                  return "W"
              elif t[-2] == "S":
                  return "S"
          elif t[-1] == "W":
              if t[-2] == "W":
                  return "S"
              elif t[-2] == "S":
                  return "W"
      elif a == "x":
          if t[-1] == "S":
              if t[-2] == "W":
                  return "S"
              elif t[-2] == "S":
                  return "W"
          elif t[-1] == "W":
              if t[-2] == "W":
                  return "W"
              elif t[-2] == "S":
                  return "S"
  
  
  n = int(input())
  s = input()
  t1, t2, t3, t4 = "SS", "SW", "WS", "WW"
  
  for i in range(1, n):
      t1 += next_to_you(t1, s[i])
      t2 += next_to_you(t2, s[i])
      t3 += next_to_you(t3, s[i])
      t4 += next_to_you(t4, s[i])
  
  ans = -1
  for i in [t1, t2, t3, t4]:
      if i[0] == i[-1]:
          ans = i[:n]
          break
  print(ans)
  
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."}]