import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    [h, w] <- fmap read . words <$> getLine :: IO [Int]
    xs <- fmap concat . replicateM h $ words <$> getLine
    let is = [(h, w) | h <- [1 .. h], w <- take w ['A' ..]]
    let cs = zip xs is
    let Just (h, w) = lookup "snuke" cs
    putStrLn $ w : show h