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)
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page