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;

typedef long long ll;
typedef unsigned long long ull;

#define fi first
#define se second
#define repl(i,a,b) for(ll i=(ll)(a);i<(ll)(b);i++)
#define rep(i,n) repl(i,0,n)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define uni(x) x.erase(unique(all(x)),x.end())
#define exist(x,y) (find(all(x),y)!=x.end())
#define bcnt __builtin_popcount

#define INF 1e16
#define mod 1000000007

int H,N,P,M,K;
int sw[505];
double dp[505][105][105];
double prob[505];

int main(){
  memset(sw,-1,sizeof(sw));
  cin>>H>>N>>P>>M>>K;
  P--;
  rep(i,M){
    int a,b;
    cin>>a>>b;
    b--;
    sw[a]=b;
  }
  dp[H][0][P]=1.0;
  rep(j,K){
    prob[j]=1.0/(double)((N-1)*(H-M-j));
  }
  for(int i=H;i>=1;i--)rep(j,K+1)rep(k,N){
    if(sw[i]==-1){
      if(j<K){ // put
        if(k>0){
          dp[i-1][j+1][k-1]+=dp[i][j][k]*prob[j]*(j+1);
        }
        if(k<N-1){
          dp[i-1][j+1][k+1]+=dp[i][j][k]*prob[j]*(j+1);
        }
        if(N>2){
          if(k==0||k==N-1) dp[i-1][j+1][k]+=dp[i][j][k]*prob[j]*(double)(N-2)*(j+1);
          else dp[i-1][j+1][k]+=dp[i][j][k]*prob[j]*(double)(N-3)*(j+1);
        }
      }
      {
        dp[i-1][j][k]+=dp[i][j][k];
      }
    }else{
      if(sw[i]==k){
        dp[i-1][j][k+1]+=dp[i][j][k];
      }else if(sw[i]==k-1){
        dp[i-1][j][k-1]+=dp[i][j][k];
      }else{
        dp[i-1][j][k]+=dp[i][j][k];    
      }
    }
  }
  double res=0;
  rep(k,N){
    maxch(res,dp[0][K][k]);
  }
  printf("%.10f\n", res);
  return 0;
}