gets;puts~/(OOO|XXX)/?$1?:East:'West':'NA'