A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.Starting from one root supplier, everyone onthe chain buys products from one's supplier in a price P and sell or distribute them in a price thatis r% higher than P. Only the retailers will face the customers. It is assumed that each member inthe supply chain has exactly one supplier except the root supplier, and there is no supply cycle.Now given a supply chain, you are supposed totellthe lowest price a customer can expect fromsome retailers.Input Specification:Each input filecontains one test case. For each case, The first line contains three positive numbers: N (<=105), the total numberofthe members inthe supply chain (and hence their ID's are numbered from0to N-1, andthe root supplier's ID is0); P, the price givenbythe root supplier; and r, the percentage rate of price increment for each distributor or retailer. Then N lines follow, each describes a distributor or retailer inthe following format:Ki ID[1] ID[2] ... ID[Ki]whereinthe i-th line, Ki isthe total numberof distributors or retailers who receive products from supplier i, andisthen followed bythe ID's of these distributors or retailers. Kj being 0 means thatthe j-th member is a retailer. All the numbers in a line are separated by a space.Output Specification:For each test case, print in one line the lowest price we can expect fromsome retailers, accurate up to4 decimal places, andthenumberof retailers that sell atthe lowest price. There must be one spacebetweenthe two numbers. It is guaranteed thatthe all the prices will not exceed 1010.
Sample Input:101.801.003235191417026118000Sample Output:1.83622