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



Input

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

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

Output

Output a line containing the probability with which the remained 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

Input

3 3 50
1 2
2 3
3 1


Output

0.500000000000


Input

3 3 10
1 2
2 3
3 1


Output

0.972000000000


Input

4 5 50
1 2
2 3
3 4
4 1
1 3


Output

0.437500000000

Solution (in CPP):

Solution:
#include <iostream>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <cstring>
#include <functional>
#include <cmath>
#include <complex>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define rep1(i,n) for(int i=1;i<=(n);++i)
#define all(c) (c).begin(),(c).end()
#define fs first
#define sc second
#define pb push_back
#define show(x) cout << #x << " " << x << endl
int N,M,a[100],b[100];
double p,dp[1<<14];
int main(){
	cin>>N>>M>>p;
	p/=100;
	rep(i,M) cin>>a[i]>>b[i],a[i]--,b[i]--;
	rep1(i,(1<<N)-1){
		dp[i]=1;
		int s=i&-i;
		int c=i-s;
		while(c>0){
			c=(c-1)&(i-s);
			int x=c+s;
			double d=dp[x];
			rep(j,M){
				if( ((x>>a[j])&1) && !((x>>b[j])&1) && ((i>>b[j])&1) ) d*=p;
				if( ((x>>b[j])&1) && !((x>>a[j])&1) && ((i>>a[j])&1) ) d*=p;
			}
			dp[i]-=d;
		}
	}
	printf("%.12f\n",dp[(1<<N)-1]);
}