# 飛ぶ高さの帯ごとの新月/満月比（到達、開けた場所、k=16）。帯 [h-1, h+1] に虫を流す。予言「低く飛ぶ種ほど月の効果が弱い」の曲線
import sys, json, xsec
for h in (1.5,4.0,8.0,16.0):
    xsec.ZLO=h-1.0
    out={}
    for lab,I in (('新月',400.0),('満月',3.2)):
        r=xsec.run(I,X0=48,hold=True,level=True,N=3000,zhi=h+1.0,k=16.0); out[lab]=r['sig_hit']
    print(json.dumps(dict(h=h,new=round(out['新月'],2),full=round(out['満月'],2),ratio=round(out['新月']/max(out['満月'],1e-9),2))),flush=True)
