import math e=enumerate for _,t in sorted([(math.atan2(y,-x),(x,-y))for y,s in e(open(0),-15)for x,c in e(s,-15)if'*'==c]):print(t)