Where's Snuke?

AtCoder
IDcodefestival_2016_final_a
Time2000ms
Memory256MB
Difficulty
There is a grid with $H$ rows and $W$ columns. The square at the $i$\-th row and $j$\-th column contains a string $S_{i,j}$ of length $5$. The rows are labeled with the numbers from $1$ through $H$, and the columns are labeled with the uppercase English letters from `A` through the $W$\-th letter of the alphabet. ![image](https://atcoder.jp/img/code-festival-2016-final/90cfa9fb5e04213219ccbc8d08286b4d.png) Exactly one of the squares in the grid contains the string `snuke`. Find this square and report its location. For example, the square at the $6$\-th row and $8$\-th column should be reported as `H6`. ## Constraints * $1≦H, W≦26$ * The length of $S_{i,j}$ is $5$. * $S_{i,j}$ consists of lowercase English letters (`a`\-`z`). * Exactly one of the given strings is equal to `snuke`. ## Input The input is given from Standard Input in the following format: $H$ $W$ $S_{1,1}$ $S_{1,2}$ $...$ $S_{1,W}$ $S_{2,1}$ $S_{2,2}$ $...$ $S_{2,W}$ $:$ $S_{H,1}$ $S_{H,2}$ $...$ $S_{H,W}$ [samples]
Samples
Input #1
15 10
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snuke snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
snake snake snake snake snake snake snake snake snake snake
Output #1
H6
Input #2
1 1
snuke
Output #2
A1
API Response (JSON)
{
  "problem": {
    "name": "Where's Snuke?",
    "description": {
      "content": "There is a grid with $H$ rows and $W$ columns. The square at the $i$\\-th row and $j$\\-th column contains a string $S_{i,j}$ of length $5$. The rows are labeled with the numbers from $1$ through $H$, a",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "codefestival_2016_final_a"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "There is a grid with $H$ rows and $W$ columns.\nThe square at the $i$\\-th row and $j$\\-th column contains a string $S_{i,j}$ of length $5$.\nThe rows are labeled with the numbers from $1$ through $H$, a...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments