System.in.eachLine{printf"%f\n",~-it.count(it[0])/~-~-it.count}