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: Runtime Error

Solution code:
N, M = map(int, input().split())
k = []
for i in range(N):
  t = list(map(str, input().split()))
  for j in range(W):
    if t[j] == "snuke":p = [i,j]
abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
print(abc[p[1]]+str(p[0]+1))

Submission status: Runtime Error

Solution code:
N, M = map(int, input().split())
k = []
for i in range(N):
  t = list(map(int, input().split()))
  for j in range(W):
    if t[j] == "snuke":p = [i,j]
abc = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
print(abc[p[1]]+str(p[0]))

Submission status: Runtime Error

Solution code:
h,w,*a=open(0).read().split();b=a.index("snuke");print([chr(i)for i in range(65,65+int(h))][b%int(w)]+str(b//int(w)+1))

Submission status: Runtime Error

Solution code:
def sigma(N):
    return N*(N-1)//2


def find_max(N):
    for i in range(N+1):
        if sigma(i) > N:
            return i


def solve(N):
    Y = find_max(N)
    rem = sigma(Y)-N
    for i in range(1, Y):
        if i != rem:
            print(i)


N = int(input())
solve(N)

Submission status: Runtime Error

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

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: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
import sys

h,w = map(int, input().split(" "))
xnames = [chr(x) for x in range(ord("A"),ord("A")+w+1)]
ynames = [x for x in range(1,h+1)]
for y in range(h):
    for x in range(w):
        s = input()
        if s == "snuke":
            print(xnames[x]+ynames[y])
            sys.exit(0)

Submission status: Runtime Error

Solution code:
import sys

h,w = map(int, input().split(" "))
xnames = [chr(x) for x in range(ord("A"),ord("A")+w+1)]
ynames = [x for x in range(1,h+1)]
for y in range(h):
    for x in range(w):
        s = input()
        if s == "snuke":
            print(xnames[x]+ynames[y])
            sys.exit()

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
h,w=map(int,input())
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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
[H, W] = raw_input().split(' ')
for i in range(H):
    for index, string in enumerate(raw_input.split(' ')):
        if string == 'snuke':
            print i, index

Submission status: Runtime Error

Solution code:
l=[]
for i in range(1,5001):
    if i%2==0:
        l.append((1+i)*(i/2))
    else:
        l.append((1+i)*(i/2)+(i+1)/2)
n=int(raw_input())
if n in l:
    for i in range(1,l.index(n)+2):
        print i
chk=bisect.bisect_right(l,n)
tmp=l[chk]
for i in range(1,chk+2):
    if i!=tmp-n:
        print i

Submission status: Runtime Error

Solution code:
import sys

#f = open('input.txt')
# f = input()

N = int(f)


out = []
sum = 0
for i in range(0, N+1):
    sum = sum + i
    out.append(i)
    if sum > N:
        r = sum - N
        out.remove(r)
        break
    
out.remove(0)

for n in out:
    print(n)

# print(' '.join(map(str, out)))

Submission status: Runtime Error

Solution code:
import sys

#f = open('input.txt')
f = input()

N = int(f)


out = []
sum = 0
for i in range(1, N):
    sum = sum + i
    out.append(i)
    if sum > N:
        r = sum - N
        out.remove(r)
        break
    
for n in out:
    print(n)

# print(' '.join(map(str, out)))

Submission status: Runtime Error

Solution code:
#!/bin/python3


import sys

# f = open('input.txt')
f = input()

N = int(f)


out = []
sum = 0
for i in range(1, N):
    sum = sum + i
    out.append(i)
    if sum > N:
        r = sum - N
        out.remove(r)
        break
    
for n in out:
    print(n)

# print(' '.join(map(str, out)))

Submission status: Runtime Error

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('A'+ str(i + 1))

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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()
torii@xps45:~/roiti46/procon/Contest/2