Network Reliability#3289

Network Reliability

3 seconds
64 megabytes
Very easy

An undirected graph is given. Each edge of the graph disappears with a constant probability. Calculate the probability with which the remaining graph is connected.

Input

The first line contains three integers (1 \leq N \leq 14), (0 \leq M \leq 100) and (0 \leq P \leq 100), separated by a single space. is the number of the vertices and is the number of the edges. is the probability represented by a percentage.

The following lines describe the edges. Each line contains two integers v_i and u_i (1 \leq v_i, u_i \leq N). (v_i, u_i) indicates the edge that connects the two vertices u_i and v_i.

Output

Output a line containing the probability with which the remaining graph is connected. Your program may output an arbitrary number of digits after the decimal point. However, the absolute error should be 10^{-9} or less.

Examples

Example 1

Loading
Loading