6 ooxoox
SSSWWS For example, if the animals numbered $1$, $2$, $3$, $4$, $5$ and $6$ are respectively a sheep, sheep, sheep, wolf, wolf, and sheep, it is consistent with their responses. Besides, there is another valid assignment of species: a wolf, sheep, wolf, sheep, wolf and wolf. Let us remind you: if the neiboring animals are of the same species, a sheep answers `o` and a wolf answers `x`. If the neiboring animals are of different species, a sheep answers `x` and a wolf answers `o`. 
3 oox
\-1 Print `-1` if there is no valid assignment of species.
10 oxooxoxoox
SSWWSSSWWS
{
"problem": {
"name": "Menagerie",
"description": {
"content": "Snuke, who loves animals, built a zoo. There are $N$ animals in this zoo. They are conveniently numbered $1$ through $N$, and arranged in a circle. The animal numbered $i (2≤i≤N-1)$ is adjacent to the",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc069_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Snuke, who loves animals, built a zoo.\nThere are $N$ animals in this zoo. They are conveniently numbered $1$ through $N$, and arranged in a circle. The animal numbered $i (2≤i≤N-1)$ is adjacent to the...",
"is_translate": false,
"language": "English"
}
]
}