($N,$K)=<>; map{ $-=0; $-+=$_>$K?1+rand 6:4+rand 3for 1..$N; $--=0|1+rand 6for 1..$N; $%+=!!$-; }1..1e5; print$%/1e5