Problem:


Score : 100 points

Problem Statement

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.

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}

Output

Print the labels of the row and the column of the square containing the string snuke, with no space inbetween.

Sample 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

Sample Output 1

H6

Sample Input 2

1 1
snuke

Sample Output 2

A1



Sample input:
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


Sample output:
H6

Submission status: Accepted

Solution code:
h,w = map(int, raw_input().split())
snuke = None
for j in range(h):
  fs = raw_input().split()
  assert len(fs) == w
  for i, f in enumerate(fs):
    if f == 'snuke':
      snuke = '%s%d' % (chr(0x41+i), 1+j)
print snuke

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
  s=input().split()
  if 'snuke' in s:
    print(chr(ord('A')+s.index('snuke'))+str(i+1))
    break

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
S = [list(input().split()) for i in range(H)]

for i in range(H):
    for j in range(W):
        if S[i][j] == "snuke":
            print(chr(ord("A")+j)+str(i+1))
            exit()

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
M = [input().split() for _ in range(H)]
for i in range(H):
    for j in range(W):
        if M[i][j] == 'snuke':
            print('ABCDEFGHIJKLMNOPQRSTUVWXYZ'[j] + str(i + 1))
            exit()

Submission status: Accepted

Solution code:
al = [chr(i) for i in range(65,65+26)]
H, W = list(map(int, input().split()))
S = []
for i in range(H):
	S.append(list(input().split()))
for i in range(H):
	for j in range(W):
		if S[i][j] == "snuke":
			print(al[j] + str(i + 1))

Submission status: Accepted

Solution code:
[h,w]=[int(i) for i in input().split()]
s=[]
a=-1
al="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for j in range(h):
    #s[0]には1行目のリスト,...
    s.append([k for k in input().split()])
    if s[j].count("snuke")==1:
        for l in s[j]:
            a=a+1
            if l=="snuke":
                break

        print(al[a]+str(j+1))
        break

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
    a=list(input().split())
    for j in range(w):
        if a[j]=="snuke":
            print(chr(65+j)+str(i+1))

Submission status: Accepted

Solution code:
e=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
h,w=map(int,input().split())
a=[input().split() for _ in range(h)]
for i in range(h):
    for j in range(w):
        if a[i][j]=="snuke":
            print(e[j]+str((i+1)))

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
S = [input().split() for k in range(H)]
A = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

for k in range(H):
    for l in range(W):
        if S[k][l]=="snuke":
            print("".join([A[l],str(k+1)]))
            exit(0)

Submission status: Accepted

Solution code:
H,W = [int(i) for i in input().split()]
S = [[i for i in input().strip().split()] for j in range(H)]

for h in range(H):
  for w in range(W):
    if S[h][w] == 'snuke':
      ans = '{}{}'.format(chr(ord('A')+w), h+1)
      break
print(ans)

Submission status: Accepted

Solution code:
h, w = map(int, input().split())
n2a = ["A", "B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]

for i in range(h):
    row = input().split()
    for j in range(w):
        if(row[j]=="snuke"):
            print(n2a[j] + str(i+1))

Submission status: Accepted

Solution code:
H,W=map(int,input().split())
alpha = [chr(x) for x in range(ord('A'),ord('Z')+1)]
for i in range(H):
  tmp = input().split()
  if 'snuke' in tmp:
    for j in range(W):
      if tmp[j] == 'snuke':
        print(alpha[j]+str(i+1))

Submission status: Accepted

Solution code:
h,w = (int(i) for i in input().split())
s = [[i for i in input().split()] for i in range(h)]
for i in range(h):
	for j in range(w):
		if s[i][j]=="snuke": x,y = str(i+1),chr(j+65)
print(y+x)

Submission status: Accepted

Solution code:
h,w=[int(i) for i in input().split()]
alpha=[chr(i) for i in range(65, 65+26)]
s=[]
for i in range(h):
    s.append(input().split())

for i in range(h):
    for j in range(w):
        if s[i][j]=="snuke":
            print( alpha[j] +str(i+1))

Submission status: Accepted

Solution code:
import string
H, W = map(int, input().split())
a = []
for i in range(H):
    a.append(input().split())

for i in range(H):
    for j in range(W):
        if a[i][j] == 'snuke':
            print(string.ascii_uppercase[j]+str(i+1))
            break

Submission status: Accepted

Solution code:

N, M = list(map(int,input().split()))
a = []
for i in range(N):
    a.append(list(input().split()))
b = 0
c = 0
d = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
for i in range(N):
    for j in range(M):
        if a[i][j] == 'snuke':
            b = i+1
            c = j

print(d[c]+str(b))

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

h = int(arr_data[0][0])
w = int(arr_data[0][1])

strdata="ABCDEFGHIJKLMNOPQRSTUVWXYZ"


#width
for i in range(0,w):
   
    #height
    for j in range(0,h):
        
        if arr_data[j+1][i]=="snuke":
#             print(i,j+1)
             print(strdata[i] + str(j+1))

Submission status: Accepted

Solution code:
a = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
h, w = map(int, input().split())
for i in range(h):
  s = input().split()
  for j in range(w):
    if s[j] == 'snuke':
      print('{}{}'.format(a[j], i + 1))

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
listAl = [chr(i) for i in range(65,65+26)]
ans = 0
# main
for i in range(H):
    listSnuke = [i for i in input().split()]
    if "snuke" in listSnuke:
        ans = listAl[listSnuke.index("snuke")] + str(i + 1)
        break
print(ans)

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
alh="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(h):
  s=list(input().split())
  if("snuke" in s):
    ind=s.index("snuke")
    print(alh[ind]+str(i+1))
    break

Submission status: Accepted

Solution code:
h,w = map(int,input().split())
lis = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
li = ["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26"]
for i in range(h):
    s = list(map(str,input().split()))
    for m in range(w):
        if s[m] == "snuke":
            print(lis[m] + li[i])
            exit()

Submission status: Accepted

Solution code:
def main():
    H, W = map(int, input().split())

    S = [
        input().split()
        for _ in range(H)
    ]
    for h in range(H):
        for w in range(W):
            if S[h][w] == "snuke":
                l = [chr(o) for o in range(ord("A"), ord("Z")+1)]
                ans = l[w] + str(h+1)
                print(ans)
                return


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
H,W=map(int,input().split())
S=[[i for i in input().split()] for j in range(H)]
for i in range(H):
    for j in range(W):
        if S[i][j]=="snuke":
            print(chr(j+65)+str(i+1))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
 
 
 
def display(x, y):
    sx = chr(ord('A') + x)
    sy = str(y + 1)
    print("{}{}".format(sx, sy))
 
def main():
    H, W = map(int, input().split())
 
    for y in range(H):
        row = input().split()
        for x in range(W):
            if row[x] == "snuke":
                display(x, y)
                return
 
if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def display(x, y):
    sx = chr(ord('A') + x)
    sy = str(y + 1)
    print("{}{}".format(sx, sy))

def main():
    H, W = map(int, input().split())

    for y in range(H):
        row = input().split()
        for x in range(W):
            if row[x] == "snuke":
                display(x, y)
                return

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
H,W = map(int,input().split())
src = [input().split() for i in range(H)]
for i in range(H):
    if 'snuke' in src[i]:
        j = src[i].index('snuke')
        print(chr(ord('A')+j) + str(i+1))
        exit()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
H, W = map(int, input().split())

for i in range(H):
    S = list(input().split())
    for j in range(W):
        if 'snuke' in S[j]:
            print(chr(ord('A') + j) + str(1 + i))

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for i in range(h):
  s=list(input().split())
  for j in range(w):
    if s[j]=='snuke':
      print(chr(65+j)+str(i+1))

Submission status: Accepted

Solution code:
ALPHA_BET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

def solve():
	H, W = list(map(int, input().split()))
	for i in range(H):
		line = input().split()
		for j, s in enumerate(line):
			if s == "snuke":
				print(ALPHA_BET[j] + str(i+1))
				return
		
solve()

Submission status: Accepted

Solution code:
h,w = map(int, input().split())
for i in range(h):
    s = input().split()
    for j in range(w):
        if s[j] == "snuke":
            print("{}{}".format(chr(ord('A')+j), i+1))

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
S = [input().split() for _ in range(H)]
for i in range(H):
    for j in range(W):
        if S[i][j] == 'snuke':
            print(chr(ord('A') + j) + str(i+1))

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
import sys
H, W = map(int, input().split())
word = { key:chr(key+65) for key in range(W) }
S = [ list(input().split()) for _ in range(H) ]
for h in range(H):
    for w in range(W):
        if S[h][w] == 'snuke':
            print(str(word[w])+str(h+1))
            sys.exit()
        else:
            pass

Submission status: Accepted

Solution code:
def solve():
    H, W = [int(x) for x in input().split(" ")]
    snake = []
    for _ in range(H):
        snake.append(list(map(str, input().split(" "))))

    for i in range(H):
        for j in range(W):
            if snake[i][j] == "snuke":
                print("".join([chr(65 + j), str(i + 1)]))


solve()

Submission status: Accepted

Solution code:
line = input().split()
H = int(line[0])
W = int(line[1])
S =[input().split() for i in range(H)]

a = ord("A")

for i in range(H):
    for j in range(W):
        if S[i][j]=="snuke":
            y = i+1
            x = chr(a+j)
            print("{0}{1}".format(x,y))
            break

Submission status: Accepted

Solution code:
h,w=map(int,input().split())
for r in range(h):
 for c,s in enumerate(input().split()):
  if s == 'snuke':
   print(chr(ord('A')+c) + str(r+1))
   exit(0)

Submission status: Accepted

Solution code:
[H, W] = raw_input().split(' ')
for i in range(int(H)):
    for index, string in enumerate(raw_input().split(' ')):
        if string == 'snuke':
            print '%s%s' % (str(unichr(index + 65)), (i+1))
            exit()

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
for i in range(H):
	S = input().split()
	for j in range(W):
		if S[j] == "snuke":
			print(chr(ord("A")+j)+str(i+1))
			exit()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import string
h, w = map(int, input().split())
for y in range(h):
    ps = input().split()
    for x, p in zip(string.ascii_uppercase, ps):
        if p == 'snuke':
            print(x + str(y+1))

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**10
mod = 10**9 + 7


def f():
    h,w = list(map(int, input().split()))
    a = [input().split() for _ in range(h)]
    for i in range(h):
        if 'snuke' in a[i]:
            return "{0}{1}".format(chr(a[i].index('snuke') + ord('A')), i + 1)



print(f())

Submission status: Accepted

Solution code:
H, W = map(int, input().split())
S = [input().split() for _ in range(H)]
for r, row in enumerate(S):
    for c, s in enumerate(row):
        if s == "snuke":
            print(chr(ord('A') + c) + str(r + 1))
            quit()

Submission status: Accepted

Solution code:
h, w = map(int,input().split())
s = [list(input().split()) for i in range(h)]
ALP = [chr(i) for i in range(65, 65+26)]

for i in range(w):
    for j in range(h):
        if s[j][i] == "snuke":
            print(ALP[i] + str(j+1))
            exit()

Submission status: Accepted

Solution code:
import sys

H, W = map(int, raw_input().split())
table = [(0 for _ in range(W)) for _ in range(H)]

for x in range(H):
	table[x] = raw_input().split()

def convert_num_to_alpha(x):
	return chr(65 + x)

for x in range(H):
	for y in range(W):
		if table[x][y] == "snuke":
			print convert_num_to_alpha(y) + str(x + 1)

Submission status: Accepted

Solution code:
import sys
H,W = map(int,input().split())
S = []
A = "ABCDEFGHIJKLNMOPQRSTUVWXYZ"
for i in range(H):
    S.append(list(map(str,input().split())))

for i in range(H):
    for j in range(W):
        if S[i][j] == "snuke":
            sys.stdout.write(A[j])
            sys.stdout.write(str(i+1))

Submission status: Accepted

Solution code:
H, W = list(map(int, input().split()))

a=0
b=0

for i in range(H):
    str = input().split()
    for j in range(W):
        if(str[j]=='snuke'):
            a=i
            b=j

print(chr(b+ord('A')), end="")
print(a+1)

Submission status: Accepted

Solution code:
h,w=map(int,raw_input().split())
#l=map(int,raw_input().split())
for i in range(h):
    l=map(str,raw_input().split())
    if 'snuke' in l:
        print chr(l.index('snuke')+ord('A'))+str(i+1)

Submission status: Accepted

Solution code:
h, w = map( int, raw_input().strip().split() )

for i in range(h):

    data = raw_input().strip().split()

    for j in range(w):
        if data[j] == "snuke":
            ans1 = chr( j + ord('A') )
            ans2 = str( i+1 )

print ans1 + ans2

Submission status: Accepted

Solution code:

h, w = map(int, input().split())
i = 1
while i <= h:
    s = list(input().split())
    if ('snuke' in s):
        index = s.index('snuke')
        print(chr(index + 97).upper() + str(i))
        break
    i += 1

Submission status: Accepted

Solution code:
x, y = map(int, input().split(' '))
s = [[0 for i in range(y)] for j in range(x)]

for i in range(x):
    s[i] = list(map(str, input().split(' ')))

c = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

flag = False

for i in range(x):
    if flag == False:
        for j in range(y):
            if s[i][j] == "snuke":          
                print(c[j], end="")
                print(i+1)
                flag = True
                break

Submission status: Accepted

Solution code:
a_,b_ = map(int, (raw_input().strip().split(" ")))
foo = []
for i,a in enumerate(range(a_)):
    foo = raw_input().strip().split(" ")
    for j in range(b_):
        if foo[j] == 'snuke':
            print(chr(65 + j) + str(i + 1))

Submission status: Accepted

Solution code:
H , W = map(int,raw_input().split())
target = 'snuke'
targetH,targetW = 0 , 0
alpabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

for i in xrange(H):
    nowLine = raw_input().split()
    if target in nowLine:
        taregtW = nowLine.index(target)
        targetH = i+1
        break

print(alpabet[taregtW]+str(targetH))

Submission status: Accepted

Solution code:
h,w = map(int, raw_input().split())
i = 1
j = 0
while True:
    s = raw_input()
    if len(s) > 6:
        s = s.split(' ')
    try:
        j = s.index("snuke") + 1
        break
    except ValueError:
        i += 1

print "{0}{1}".format(chr(64+j), i)

Submission status: Accepted

Solution code:
import sys

def GetColumnName(index):
	return chr(index+ord('A'))

H, W = map(int, input().split())

matrix = []
for i in range(H):
	row = sys.stdin.readline()
	matrix.append(row.split())

for i in range(H):
	for j in range(W):
		if matrix[i][j] == "snuke":
			print(GetColumnName(j)+str(i+1))
			sys.exit()

Submission status: Accepted

Solution code:
H,W=map(int,input().split())
d='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
dic=list(d)

for i in range(H):
    a=list(map(str,input().split()))
    if 'snuke' in a:
        wn=a.index('snuke')
        
        print(dic[wn]+str(i+1))
        exit()

Submission status: Accepted

Solution code:
import sys
next(sys.stdin)
r = 1
for line in sys.stdin:
    line = list(line.strip().split())
    try:
        c = line.index('snuke')
        print(chr(ord('A') + c) + str(r))
        break
    except ValueError:
        pass
    r += 1

Submission status: Accepted

Solution code:
import sys

ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lines = sys.stdin.readlines()

H, W = lines[0].strip().split(" ")

h = 0
w = 0
for line in lines[1:]:
    h += 1
    w = 0
    for word in line.strip().split(" "):
        if word == 'snuke':
            print "%s%s" % (ALPHABET[w], h)
            exit
        else:
            w += 1

Submission status: Accepted

Solution code:
alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
H, W = map(int, raw_input().split())
S = [raw_input().split() for i in xrange(H)]

for h in xrange(H):
	for w in xrange(W):
		if S[h][w] == "snuke":
			print alpha[w] + str(h + 1)
			exit()

Submission status: Accepted

Solution code:
H, W = map(int, raw_input().split())
for i in range(H):
    S_list = raw_input().split()
    if 'snuke' in S_list:
        i0 = i
        j0 = S_list.index('snuke')
print 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'[j0]+str(i0+1)

Submission status: Accepted

Solution code:
def solve():
    rowstr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    h, w = map(int, input().split())
    snaketable = [input().split() for _ in range(h)]
    for i in range(h):
        for j in range(w):
            if "snuke" in snaketable[i][j]:
                print("{0}{1}".format(rowstr[j], i+1))
                return


if __name__=="__main__":
    solve()

Submission status: Accepted

Solution code:
h,w=map(int,raw_input().split())
s=[raw_input().split() for _ in xrange(h)]
for i in xrange(h):
    for j in xrange(w):
        if s[i][j]=="snuke":
            print(chr(ord("A")+j)+str(i+1))
            exit()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

import itertools
import string


def main():
    h, w = (int(x) for x in input().split())
    table = [input().split() for _ in range(h)]
    snuke = None
    for i, j in itertools.product(range(h), range(w)):
        if table[i][j] == "snuke":
            snuke = i, j
            break
    ans = "{}{}".format(string.ascii_uppercase[snuke[1]], snuke[0] + 1)
    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

H,W = map(int,input().split())
for h in range(H):
    words = input().split()
    for w, word in enumerate(words):
        if word == 'snuke':
            print('{}{}'.format(chr(ord('A')+w), h+1))

Submission status: Accepted

Solution code:
H, W = map(int, raw_input().split())
B = [raw_input().split() for _ in xrange(H)]
for i in xrange(H):
    for j in xrange(W):
        if B[i][j] == 'snuke':
            print chr(ord('A')+j) + str(i+1)
            exit()

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
a = [input().split() for i in range(h)]
for i in range(h):
  for j in range(w):
    if a[i][w] == "snuke":
      print(chr(ord("A") + j) + str(i + 1))
      exit()

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
a = [input().split() for i in range(h)]
for i in range(h):
  for j in range(w):
    a[i][j] == "snuke":
      print(chr(ord("A") + j) + str(i + 1))
      exit()

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
a = [input().split() for i in range(h)]
for i in range(h):
  for j in range(w):
    a[i][w] == "snuke":
      print(chr(ord("A") + j) + str(i + 1))
      exit()

Submission status: Runtime Error

Solution code:
h,w=map(int, input().split())
s=[list(input().split()) for i in range(h)]
alp="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(h):
  for j in range(w):
    if s[i][j]=="snuke":
      print(alp[j+1]+(i+1))
      break

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
board=[list(map(int,input().split())) for _ in range(h)]
pos="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(h):
  for j in range(w):
    if board[i][j]=="snuke":
      print(pos[j]+str(i+1))
      exit()

Submission status: Runtime Error

Solution code:
_, w, *s = open(0).read().split()
a, b = divmod(s.index("snuke"), int(w))
print("ABCDEFGHIJJ"[b], a+1, sep="")

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())

for i in range(H):
  s = input().split()
  if W != 1:
    if len(set(s)) == 2:
      row = i+1
      col = 65+s.index('snuke')
      break
  else:
    if s == ["snuke"]:
      row = i+1
      col = 65
print("{}{}".format(chr(col), row))

Submission status: Runtime Error

Solution code:
H, W = map(int, input().split())

for i in range(H):
  s = input().split()
  if len(set(s)) == 2:
    row = i+1
    col = 65+s.index('snuke')
    break
print("{}{}".format(chr(col), row))

Submission status: Runtime Error

Solution code:
h,w = map(int , input().split())
alf = 'ABCDEFGHIJKLMN'
for i in range(h):
  for j,s in enumerate(input().split()):
    if s == 'snuke':
      print(alf[j] + str(i+1))

Submission status: Runtime Error

Solution code:
from string import *
h,w=map(int,input().split())

s =[None] * h
for i in range(h):
    s[i] = [None] * w
    for j in range(w):
        s[i][j] = input()

for i in range(h):
    for j in range(w):
        if(s[i][j]=='snuke'):
            idx1=ascii_lowercase[i].swapcase()
            idx2=str(j+1)
            print(idx1+idx2)
            break

Submission status: Runtime Error

Solution code:
H, W = map( int, input().split() )
s = [ [ map( str, input().split() ) ] for i in range(H) ] 
for i in range(H) : 
    for j in range(W) : 
       if s[i][j] == "snuke" : 
           w = chr( i + ord( "A" ) )
           h = i + 1
           exit()
print( w + str( h ) )

Submission status: Runtime Error

Solution code:
H, W = map( int, input().split() )
s = [ [ map( str, input().split() ) ] for i in range(H) ] 
for i in range(H) : 
    for j in range(W) : 
       if "snuke" in s[i][j] : 
           w = chr( i + ord( "A" ) )
           h = i + 1
           exit()
print( w + str( h ) )

Submission status: Runtime Error

Solution code:
H, W = map( int, input().split() )
abc = [ chr(i) for i in range( 65, 65+26 ) ]
for i in range(H) : 
    s = list( map( str, input().split() ) )
    if "snuke" in s : 
        w = abc[ s.index[ "snuke" ] ]
        h = i + 1
        break
print( w + str( h ) )

Submission status: Runtime Error

Solution code:
H, W = map( int, input().split() )
abc = [ chr(i) for i in range( 65, 65+26 ) ]
for i in range(H) : 
    s = list( map( str, input().split() ) )
    for j in range(W) :
        if "snuke" in s : 
           w = abc[ s.index[ "snuke" ] ]
           h = i + 1
           exit()
print( w + str( h ) )

Submission status: Runtime Error

Solution code:
H, W = map( int, input().split() )
abc = [ chr(i) for i in range( 65, 65+26 ) ]
for i in range(H) : 
    s = list( map( str, input().split() ) )
    for j in range(W) :
        if "snuke" in s : 
           w = abc[ s.index[ "snuke" ] ]
           h = i + 1
           break
print( w + str( h ) )

Submission status: Runtime Error

Solution code:
h,w = map(int, input().split())
s = [list(map(int, input().split())) for i in range(h)]
for key_i,i in enumerate(s):
  key_i += 1
  for key_j,j in enumerate(i):
    if j == "snuke":
      print(chr(ord("A")+key_j)+str(key_i))
      exit()

Submission status: Runtime Error

Solution code:
from sys import stdin

def readString() :
    return  stdin.readline().rstrip()

def solve() :
    H,W = [int(x) for x in stdin.readline().rstrip().split()]

    table = [stdin.readline().rstrip().split() for _ in range(H)]

    l = [x for x in "ABCDEFGHIJK"]
    for h in range(0,H) :
        for w in range(0,W) :
            if(table[h][w] == "snuke"):
                print(l[w] + "" + str(h + 1))
solve();

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
b=['A','B','C','D','E','F','G','H']
for k in range(h):
    a=list(input().split())
    for l in range(w):
        if a[l]=='snuke':
            print(b[l]+str(k+1))

Submission status: Runtime Error

Solution code:
import sys
h,w=map(int,input().split())
A=['A','B','C','D','E','F','G','H','I','J']
s=[]
for i in range(h):
    s.append(list(map(str,input().split())))
for i in range(h):
    for j in range(w):
        if s[i][j]=='snuke':
            a=A[j]
            b=str(i+1)
            print(a+b)
            sys.exit()

Submission status: Runtime Error

Solution code:
from itertools import product

H, W = map(int, input().split())
table = [input().split() for _ in range(H)]
for i, j in product(range(H), range(W)):
    if table[i][j] == 'snuke': print('ABCDEFGHIJ'[j] + str(i+1)); break

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
s=[input().split() for _ in range(w)]
for i in range(w):
    for j in range(h):
        if s[i][j]=="snuke":
            print(chr(ord("A")+j)+str(i+1))

Submission status: Runtime Error

Solution code:
あ」

Submission status: Runtime Error

Solution code:
h,w = map(int,input(),split())
for i in range(h):
    a = input().split()
    if "snuke" in a:
        ans = chr(ord('A') + j)+str(i)

print(ans)

Submission status: Runtime Error

Solution code:
h,w = map(int,input(),split())
for i in range(h):
    a = input().split()
    for j in range(w):
        if a[j] == "snuke":
            ans = chr(ord('A') + j)+str(i)

print(ans)

Submission status: Runtime Error

Solution code:
h,w = map(int,input(),split())
for i in range(h):
    a = input().split()
    for j in range(w):
        if a[j] == "snuke":
            print(chr(ord('A') + j)+str(i))
            break

Submission status: Runtime Error

Solution code:
import sys
sys.setrecursionlimit(10**6)
n,m=map(int,input().split())
a=[[]for i in range(n+m)]
for i in range(n):
    s=list(map(int,input().split()))
    for j in s[1:]:
        a[i].append(j)
        a[n+j-1].append(i)
t=[False]*n
def g(x):
    t[x]=True
    for i in a[x]:
            if not t[x]:
                g(j)
g(0)
if all(t):
    print("YES")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
h,w=map(int, input().split())
for i in range(h):
  t=input().split().index('snuke')
  if t<0:
    continue
  print('%s%d' % (chr(t+ord('A')), i+1))
  quit(0)

Submission status: Runtime Error

Solution code:
h,w=map(int, input().split())
for i in range(h):
  t=input().split().find('snuke')
  if t<0:
    continue
  print('%s%d' % (chr(t+ord('A')), i+1))
  quit(0)

Submission status: Runtime Error

Solution code:
h,w=map(int,input().split())
for i in range(h):
  a=input()
  if 'snuke' in a:
    b=a.find('snuke')
    break
print(chr(ord('A')+b)+str(a+1))

Submission status: Runtime Error

Solution code:
from itertools import product

H, W = map(int, input().split())
L = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
S = [[str(_) for _ in input().split()] for _ in range(W)]

for i, j in product(range(H), range(W)):
    if S[i][j] == "snuke":
        break

res = L[i] + str(j+1)
print(res)

Submission status: Runtime Error

Solution code:
H,W=map(int,input().split(' '))
S=[input().split(' ') for i in range(H)]
row=i+1 if 'snuke' in S[i] else continue for i in range(H)
col='ABCDEFGHIJKLMNOPQRSTUVWXYZ'[S[row-1].index('snuke')]
print(str(col)+str(row))

Submission status: Runtime Error

Solution code:
H,W=map(int,input().split(' '))
S=[input().split(' ') for i in range(H)]
row=i+1 if 'snuke' in S[i] for i in range(H)
col='ABCDEFGHIJKLMNOPQRSTUVWXYZ'[S[row-1].index('snuke')]
print(str(col)+str(row))

Submission status: Runtime Error

Solution code:
H,W = map(int,input().split())
S = [[i for i in input().split()] for_ in range(H)]

for h in range(H):
  for w in range(W):
    if S[h][w] == "snuke":
      break
print(chr(ord(A)-1+w) + str(h))

Submission status: Runtime Error

Solution code:
H, W = map(int,input().split())
S = [input().split() for _ in range(H)]

w = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J"]

for i in range(H):
  for j in range(W):
    if(S[i][j] == "snuke"):
      print(w[j]+str(i+1))

Submission status: Runtime Error

Solution code:
h, w = map(int, input().split())
s = [input().split() for _ in range(h)]
al = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
for i in range(h):
  for j in range(w):
    if s[i][j] = "snuke":
      print("{}{}".format(al[i], j+1))
      exit()
    else:
      pass