($n,$k)=<>;print+(grep{$.+=~~rand(6)-~~($_>$k?rand 6:3+rand 3)for!<>..$n;$.<0}1..1e6)/1e6