Problem: Training is indispensable for achieving good results at ICPC. Rabbit wants to win at ICPC, so he decided to practice today as well.

Today's training is to use the Amidakuji to improve luck by gaining the ability to read the future. Of course, not only relying on intuition, but also detailed probability calculation is indispensable.

The Amidakuji we consider this time consists of N vertical bars with a length of H + 1 cm. The rabbit looks at the top of the stick and chooses one of the N. At the bottom of the bar, "hit" is written only at the location of the Pth bar from the left. The Amidakuji contains several horizontal bars. Consider the following conditions regarding the arrangement of horizontal bars.

* Each horizontal bar is at a height of a centimeter from the top of the vertical bar, where a is an integer greater than or equal to 1 and less than or equal to H.
* Each horizontal bar connects only two adjacent vertical bars.
* There are no multiple horizontal bars at the same height.



The rabbit drew M horizontal bars to satisfy these conditions. Unfortunately, the rabbit has a good memory, so I remember all the hit positions and the positions of the horizontal bars, so I can't enjoy the Amidakuji. So I decided to have my friend's cat add more horizontal bars.

First, the rabbit chooses one of the N sticks, aiming for a hit. After that, the cat performs the following operations exactly K times.

* Randomly select one of the locations that meet the conditions specified above even if a horizontal bar is added. Here, it is assumed that every place is selected with equal probability. Add a horizontal bar at the selected location.



Then, it is determined whether the stick selected by the rabbit was a hit. The way to follow the bars is the same as the normal Amidakuji (every time you meet a horizontal bar, you move to the next vertical bar). Rabbits want to have a high probability of winning as much as possible.



Input


H N P M K
A1 B1
...
AM BM


In Ai, Bi (1 ≤ i ≤ M), the i-th horizontal bar drawn by the rabbit is at a height of Ai centimeters from the top of the vertical bar, and the second vertical bar from the left and Bi from the left. + An integer that represents connecting the first vertical bar.

2 ≤ H ≤ 500, 2 ≤ N ≤ 100, 1 ≤ P ≤ N, 1 ≤ M ≤ 100, 1 ≤ K ≤ 100, M + K ≤ H, 1 ≤ A1 <A2 <... <AM ≤ H, Satisfy 1 ≤ Bi ≤ N-1.

Output

Output the probability of winning in one line when the rabbit chooses a stick so that the probability of winning is maximized. Absolute errors of 10-6 or less are allowed.

Examples

Input

9 4 3 2 1
2 1
7 3


Output

0.571428571


Input

9 4 3 2 3
2 1
7 3


Output

0.375661376

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
#define FOR(i,k,n) for(int i = (int)(k); i < (int)(n); i++)
#define REP(i,n) FOR(i,0,n)
#define ALL(a) a.begin(), a.end()
#define MS(m,v) memset(m,v,sizeof(m))
typedef long long ll;
typedef double ld;
typedef vector<int> vi;
typedef vector<string> vs;
typedef pair<int, int> pii;
const int MOD = 1000000007;
const int INF = MOD + 1;
const ld EPS = 1e-12;
template<class T> T &chmin(T &a, const T &b) { return a = min(a, b); }
template<class T> T &chmax(T &a, const T &b) { return a = max(a, b); }

/*--------------------template--------------------*/

ld dp[555][111][111];
int h, n, p, m, k;
vi hr, sum;

ld solve(int hei, int bar, int use)
{
	assert(!(bar < 0 || bar >= n || use < 0));
	if (hei == h)
	{

		assert(use == 0);
		if (bar == p) return 1.0;
		else return 0.0;
	}
	if (dp[hei][bar][use] >= 0)
	{
		return dp[hei][bar][use];
	}
	ld res = 0;
	if (hr[hei] != -1)
	{
		if (hr[hei] == bar) res = solve(hei + 1, bar + 1, use);
		else if (hr[hei] == bar - 1) res = solve(hei + 1, bar - 1, use);
		else res = solve(hei + 1, bar, use);
	}
	else
	{
		ld useexp = use / (ld)(h - hei - (m - sum[hei]));
		if (use > 0)
		{
			if (bar == 0)
			{
				res += useexp * (1.0 / (n - 1)) * solve(hei + 1, bar + 1, use - 1);
				res += useexp * (1.0 - 1.0 / (n - 1)) * solve(hei + 1, bar, use - 1);
			}
			else if (bar == n - 1)
			{
				res += useexp * (1.0 / (n - 1)) * solve(hei + 1, bar - 1, use - 1);
				res += useexp * (1.0 - 1.0 / (n - 1)) * solve(hei + 1, bar, use - 1);
			}
			else
			{
				res += useexp * (1.0 / (n - 1)) * solve(hei + 1, bar + 1, use - 1);
				res += useexp * (1.0 / (n - 1)) * solve(hei + 1, bar - 1, use - 1);
				res += useexp * (1.0 - 2.0 / (n - 1)) * solve(hei + 1, bar, use - 1);
			}
			if(useexp < 1) res += (1.0 - useexp) * solve(hei + 1, bar, use);
		}
		else
		{
			res += solve(hei + 1, bar, use);
		}
	}
	dp[hei][bar][use] = res;
	return res;
}

int main()
{
	cin.sync_with_stdio(false); cout << fixed << setprecision(10);
	REP(i, 555)REP(j, 111)REP(k, 111) dp[i][j][k] = -1;
	cin >> h >> n >> p >> m >> k;
	p--;
	hr.resize(h, -1);
	sum.resize(h + 1);
	REP(i, m)
	{
		int a, b; cin >> a >> b;
		a--; b--;
		hr[a] = b;
		sum[a]++;
	}
	REP(i, h) sum[i + 1] += sum[i];
	ld ans = 0;
	REP(i, n)
	{
		chmax(ans, solve(0, i, k));
	}
	cout << ans << endl;
	return 0;
}