// Arup Guha
// 7/16/2026
// Solution to UCF 1995 HS Contest Problem: Where's Ali?

import java.util.*;

public class where {

	// Here is what Ali looks like, except his head...
	final public static String[] PIC = {"./+\\.","_/ \\_"};
	
	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		
		// Read the whole grid.
		while (stdin.hasNext()) {
		
			ArrayList<String> grid = new ArrayList<String>();
			for (int i=0; i<10; i++) {
				String line = stdin.nextLine();
				grid.add(line);
			}
			
			boolean found = false;
		
			// Avoid AOOB - i is column, j is row.
			for (int i=2; i<grid.get(0).length()-2; i++) {
				for (int j=0; j<grid.size()-2; j++) {
					if (grid.get(j).charAt(i) == '@') {
					
						boolean ok = true;
						for (int dr=1; dr<3; dr++) {
							for (int dc=-2; dc<=2; dc++) {
							
								// Not a character to match.
								if (PIC[dr-1].charAt(dc+2) ==  ' ') continue;
								
								// Be careful with the index arithmetic.
								if (grid.get(j+dr).charAt(i+dc) != PIC[dr-1].charAt(dc+2))
									ok = false;
							}
						}
					
						// Found him print and store that we found him.
						if (ok) {
							System.out.println("Ali is hiding at "+(i+1)+","+(j+1)+"!");
							found = true;
						}
					}
					
					// We can get out.
					if (found) break;
				}
				
				// Same.
				if (found) break;
			}
		
		} // read next case.
	}
}