atcoder#CODEFESTIVAL2016FINALA. Where's Snuke?
Where's Snuke?
Score : points
Problem Statement
There is a grid with rows and columns.
The square at the -th row and -th column contains a string of length .
The rows are labeled with the numbers from through , and the columns are labeled with the uppercase English letters from A
through the -th letter of the alphabet.
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 -th row and -th column should be reported as H6
.
Constraints
- The length of is .
- 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:
Output
Print the labels of the row and the column of the square containing the string snuke
, with no space inbetween.
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
H6
1 1
snuke
A1