R=range(-15,16) for t in sorted((y>=0,x/(y+.1),x,-y)for y in R for x,c in zip(R,input())if'*'==c):print(t[2:])