let H=Int(String(readLine()!.characters.split(" ")[0]))!
for i in 1...H {
  for (j,s) in readLine()!.characters.split(" ").enumerate() {
    if s == "snuke" {
      print("ABCDEFGHIJKLMNOPQRSTUVWXYZ".characters.map{$0}[j]+"\(i)")
    }
  }
}