defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) def yn(b), do: IO.puts (if b, do: "Yes", else: "No") def main do s = input() s |> String.graphemes |> Enum.chunk_every(3, 1, :discard) |> Enum.find_value(fn v -> case v do [x, x, x] -> x _ -> nil end end) |> then(fn v -> case v do "O" -> "East" "X" -> "West" nil -> "NA" end end) |> IO.puts end end