#include <bits/stdc++.h>
using namespace std;
char a;
int b=1,n,m;
int main(void){
    scanf ("%d%d\n",&n,&m);
    for (;;b++)
    for (a='A';a-'A'<m;a++){
        string s;
        cin>>s;
        if (s=="snuke")return !printf ("%c%d\n",a,b);
    }
}