import java.util.*; public class draftlottery_ls { static double[][] dp; static int[] counts; static int n; static void solve(int s, int p, int total, double cur, boolean[] selected) { if (s == 0) { for (int i=0; i mapper = new HashMap<>(); int total = 0; for (int i=0;i 0) { String w = in.next(); int k = in.nextInt(); System.out.println(dp[mapper.get(w)][k-1]); } } }